Yahoo! UI Library

highlight  3.3.0pr1

Yahoo! UI Library > highlight
Search:
 
Filters

Module: highlight

Provides methods for highlighting strings within other strings by wrapping them in HTML.

This module contains the following classes:

Submodules:

highlight-accentfold
Adds accent-folding highlighters to Y.Highlight.
highlight-base

Provides methods for highlighting strings within other strings by wrapping them in HTML.

The highlight methods first escape any special HTML characters in the input strings and then highlight the appropriate substrings by wrapping them in a <b class="yui3-highlight"></b> element. The <b> element is used rather than <strong> in accordance with HTML5's definition of <b> as being purely presentational, which is exactly what highlighting is.


Copyright © 2010 Yahoo! Inc. All rights reserved.