Manos Batsis schreef:
Hello,
Wiki fragments returned by the API (in JSON or XML) format contain HTML markup. When converting the wiki markup to XHTML, is it safe to *not* escape characters '<' and '>'? Does that apply to other characters, i.e. all five predefined XML entities or more?
Wikitext can contain HTML markup, but that does NOT mean it's safe. The only thing you can safely not escape is the output of action=parse, which is valid and safe XHTML. Wikitext can quite literally contain *anything*.
Roan Kattouw (Catrope)