Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates HTML object instead of string #368

Closed
imaai opened this issue Mar 31, 2017 · 5 comments
Closed

Creates HTML object instead of string #368

imaai opened this issue Mar 31, 2017 · 5 comments
Assignees

Comments

@imaai
Copy link

imaai commented Mar 31, 2017

MD file
"\<foo\>"
produces HTMLObject
<foo></foo>

@tivie
Copy link
Member

tivie commented Mar 31, 2017

can you please provide more information?

@tivie tivie self-assigned this Mar 31, 2017
@imaai
Copy link
Author

imaai commented Mar 31, 2017

var converter = new showdown.Converter();
var html = converter.makeHtml('\<foo\>');

Then changing content of div with var html and it contains:
<foo></foo> instead of text

@imaai
Copy link
Author

imaai commented Mar 31, 2017

These two lines did work in createHTML
text = text.replace(/\\</g,'&lt;');
text = text.replace(/\\>/g,'&gt;');

@tivie
Copy link
Member

tivie commented Apr 11, 2017

related to #374

@tivie
Copy link
Member

tivie commented Apr 11, 2017

Closing in favor o #374

@tivie tivie closed this as completed Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants