Skip to content

Misworded Header & No HTML warn on posts #414

Description

@DJAscendance

The Message Board notice currently says:

Some HTML coding has been blocked for security reasons. Basic HTML tags (i.e. <p>, <br>, <a href>, and <img src>) are allowed. If a disallowed tag is used, an error message will display.

The Inbox has a shorter version of this notice in some places.

I did a little testing against the current sanitizer, and the wording isn't quite accurate:

  • More than those four example tags are allowed, including tables, <font>, <center>, image maps, and <marquee>.
  • Disallowed tags and attributes are normally removed silently—the post still goes through and no warning is shown.
  • <style>, <link>, <script>, inline CSS, and event attributes are removed.
  • Message Board and Inbox posts, replies, and their configuration/introduction sections all appear to use the same HTML rules.

If the notice says it will show an error, it should do that. If it isn't going to, then we should at minimum reword the header so it isn't misleading. I really suggest re-implementing the parser to do its original job and return something like:

Message not sent. The following unsupported HTML tags were found: <tag>, <tag>.

We could also add a small HTML tutorial under the “How Do I?” button on the Control Panel. It could list the basic supported tags and include a couple of simple examples.

This would only document the HTML that is already supported. It is not a request to bring back the old custom-coded RTF/markup editor—that was a completely different feature and a nightmare to maintain.

—BassMekanik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions