/*global Autolinker */ /** * @class Autolinker.htmlParser.EntityNode * @extends Autolinker.htmlParser.HtmlNode * * Represents a known HTML entity node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}. * Ex: ' ', or ' ' (which will be retrievable from the {@link #getText} * method. * * Note that this class will only be returned from the HtmlParser for the set of * checked HTML entity nodes defined by the {@link Autolinker.htmlParser.HtmlParser#htmlCharacterEntitiesRegex}. * * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more * details. */ Autolinker.htmlParser.EntityNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, { /** * Returns a string name for the type of node that this class represents. * * @return {String} */ getType : function() { return 'entity'; } } );