Link to the self with a specific text.

The whole text is linked with a single <a> element.

The href used is provided by v.hrefto. If href is null then a <span> element is used instead of <a>.

Property definitions

nitc :: htmlight $ MEntity :: linkto_text
	# Link to the `self` with a specific text.
	#
	# The whole text is linked with a single `<a>` element.
	#
	# The `href` used is provided by `v.hrefto`.
	# If `href` is null then a `<span>` element is used instead of `<a>`.
	fun linkto_text(v: HtmlightVisitor, text: String): HTMLTag
	do
		var href = v.hrefto(self)
		if href == null then
			return (new HTMLTag("span")).text(text)
		end
		return (new HTMLTag("a")).attr("href", href).text(text)
	end
src/htmlight.nit:452,2--465,4