Skip to content

modx::stripTags filtering may not work correctly #9080

@modxbot

Description

@modxbot

Anonymous created Redmine issue ID 9080

input: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]tag]]
output: [[tag]]

input: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]!tag]]
output: [[!tag]]

input: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]_tag]]
output: [[_tag]]

$text=$modx->stripTags($text);
$title=$modx->stripTags($title);
$data=array("content"=>$text,"pagetitle"=>$title);
//save data
//..
//..
//..
//
//display data

Is this normal?

For example: http://www.youtube.com/watch?v=tNlOg3MlUjk

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-corebugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions