SafeMarkup::checkPlain() always escapes and sets safe. SafeMarkup::escape() only escapes if the string if not already marked as safe. This is causing confusion. At least, the functions need to be better documented.

This is plenty of discussion about this #2506195: Remove SafeMarkup::set() from Xss::filter()

Comments

alexpott’s picture

joelpittet’s picture

Status: Active » Closed (duplicate)

SafeMarkup::escape doesn't exist any more. Closing as duplicate.