Align the WMD editor's preview HTML with server-side HTML validation (e.g. no embedded JavaScript code)

前端 未结 2 1797
天命终不由人
天命终不由人 2021-02-09 23:23

There are many Stack Overflow questions (e.g. Whitelisting, preventing XSS with WMD control in C# and WMD Markdown and server-side) about how to do server-side

2条回答
  •  既然无缘
    2021-02-10 00:03

    It is not a security issue to allow the local user to execute scripts in the page context as long as it's impossible for any third party to provide the script. Without the editor doing it, the user could always enter a javascript: url while on your page or use Firebug or something similar.

提交回复
热议问题