Krang::Markup::Gecko - WYSIGWYG HTML filtering for Gecko browsers
Subclass of Krang::Markup for browsers based on Gecko
See Krang::Markup
See Krang::Markup
- pkg('Markup::Gecko')->
db2browser_map()
This method returns a list of markup mappings from the version stored
in the DB to a version understood by Gecko's WYSIWYG commands.
- pkg('Markup::Gecko')->
browser2db_map()
This method returns a list of markup mappings from the version
understood by Gecko's WYSIWYG commands to the version stored in the
DB.
- pkg('Markup::Gecko')->db2browser(html => $html)
This method replaces normalized tags with their Gecko-specific
equivalent using the mappings provided by db2browser_map().
It is passed the normalized HTML and returns a string with
those mappings applied to it.
- pkg('Markup::Gecko')->browser2db(html => $html)
This method replaces Gecko-specific HTML tags with their normalized
equivalent according to the mappings provided by browser2db_map()
It is passed the HTML coming from the browser and returns a string
with those mappings applied.