-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i'm trying wmd editor over ajax.
here there is the bugged code
wdm code is based on openlibrary fork on github
it work very good without ajax.
but when i try to display editor over ajax form it doesn't load.
non ajax version produce this html:
<div id="wmd-container">
<div id="wmd-button-bar"></div>
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello all, I am using the WMD editor's original code(not the stackoverflow version) since I need multiple of 'em on the same page and stackoverflow's version makes heavy use of element IDs internally since they aren't going to be having more than one editor instance per page.
The code runs fin in…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
There are many SO questions (e.g. here and here) about how to do server-side scrubbing of Markdown produced by the WMD editor to ensure the HTML generated doesn't contain malicious script, like this:
<img onload="alert('haha');"
src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm able to get Markdown and html formated text from WMD editor. In my requirement i also need to get plain text from WMD Editor. I would like to explain a simple example.
In StackOverflow we will see markdown text while typing description in wmd editor, in preview we are able to see the formated…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi,
i am trying to find ways to sanitize the input of wmd editor
Specifically, I am trying to make HTML tags only available in the <code>tags that wmd generates. Is that possible
My problem is that the following code is rendered as html which is vunerable to potential xss attacks
e.g. …
>>> More