| 1 | /*global Autolinker */ |
| 2 | /** |
| 3 | * @class Autolinker.htmlParser.EntityNode |
| 4 | * @extends Autolinker.htmlParser.HtmlNode |
| 5 | * |
| 6 | * Represents a known HTML entity node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}. |
| 7 | * Ex: ' ', or ' ' (which will be retrievable from the {@link #getText} |
| 8 | * method. |
| 9 | * |
| 10 | * Note that this class will only be returned from the HtmlParser for the set of |
| 11 | * checked HTML entity nodes defined by the {@link Autolinker.htmlParser.HtmlParser#htmlCharacterEntitiesRegex}. |
| 12 | * |
| 13 | * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more |
| 14 | * details. |
| 15 | */ |
| 16 | Autolinker.htmlParser.EntityNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, { |
| 17 | |
| 18 | /** |
| 19 | * Returns a string name for the type of node that this class represents. |
| 20 | * |
| 21 | * @return {String} |
| 22 | */ |
| 23 | getType : function() { |
| 24 | return 'entity'; |
| 25 | } |
| 26 | |
| 27 | } ); |