Krang::Markup::WebKit - WYSIGWYG HTML filtering for WebKit browsers
Subclass of Krang::Markup for browsers based on WebKit
See Krang::Markup
See Krang::Markup
- pkg('Markup::WebKit')->
db2browser_map()
This method returns a list of markup mappings from the version stored
in the DB to a version understood by WebKit's WYSIWYG commands.
- pkg('Markup::WebKit')->
browser2db_map()
This method returns a list of markup mappings from the version
understood by WebKit's WYSIWYG commands to the version stored in the
DB.
- pkg('Markup::WebKit')->db2browser(html => $html)
This method replaces normalized tags with their WebKit-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::WebKit')->browser2db(html => $html)
This method replaces WebKit-specific 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.