NAME

Krang::Markup - Base class for browser-specific WYSIWYG HTML filtering


SYNOPSIS

Krang::Markup - Base class for browser-specific WYSIWYG HTML filtering


DESCRIPTION

Different browsers use different HTML tags to manage basic markup like bold, italic, underline, strike-through, subscript and superscript. To normalize the database content across the usage of different browsers, the HTML must be filtered accordingly when going to and coming from browser WYSIWYG areas.

Definition

A ``normalized tag'' is the HTML tag stored in the database and published on the net.

Example

Let's take BOLD text as an example. The normalized tag is STRONG.

Boldifying text in IE effectively inserts the STRONG tag.

Gecko, however, inserts the B tag, and WebKit wraps the text with a SPAN tag having its style attribute set to font-weight: bold.

When going to Gecko or WebKit the STRONG tag therefore has to be replaced with what the WYSIWYG commands of those browsers understand. And when coming from them, the normalized version has to be restored.

This module provides mockups for methods accomplishing this task.


INTERFACE

Subclasses must implement the following class methods: