Method: Arrow::HTMLText#to_html

Defined in:
lib/arrow/htmltokenizer.rb

#to_htmlObject

Return an HTML fragment that can be used to represent the token symbolically in a web-based introspection interface.



167
168
169
170
171
172
173
# File 'lib/arrow/htmltokenizer.rb', line 167

def to_html
	marked = self.escape_html( @raw )
	marked.gsub( /(&[^;]+;)/ ) {|ent|
		%Q{<span class="entity">#{ent}</span>}
	}
	super { marked  }
end