Imagine the situation where you needed to allow authors to work with <table>
tags and to do so you set the Formatting
property of the HtmlPlaceholderDefinition
to FullFormatting
.
The authors were happy. They could now apply almost all kinds of tags without any restrictions. Some chose to use orange fonts by using <font
color=orange>
tags instead of the black headings defined in the main stylesheet. Others merrily copied formatted text from Word documents into the HtmlPlaceholderControl
. Someone even ventured a <marquee>
tag.
The look and feel of each page strayed further and further from the predefined stylesheet. Editors and moderators got called for an explanation on how the dozens of unapproved styles and colors were finding their way into the pages.
The problem is that the standard HtmlPlaceholderDefinition
/HtmlPlaceholder
pair can't allow <table>
tags but disable <font>
and other tags that...