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

Format, syntax-highlight and display DOMParser HTML output back to user #16

Open
0xedward opened this issue Jan 9, 2021 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@0xedward
Copy link
Owner

0xedward commented Jan 9, 2021

  • Have a button that onclick will replace the textarea element with the html nodes in-order output from DOMParser, prettified for a developer to view
    • Allow the user to click a button to view their input HTML and the DOMParser HTML side-by-side. Maybe in the future have a button that allows them to see the diff between the two files.
  • We can use DOMParser(HTMLString).documentElement.innerhtml to get the HTML output from DOMParser, but we should only set that output value was text for security reasons, even though the entire application runs client-side
@0xedward 0xedward closed this as completed Jan 9, 2021
@0xedward 0xedward reopened this Jan 9, 2021
@0xedward 0xedward added feature New feature or request compatibility compatibility of code on most modern browsers and removed feature New feature or request compatibility compatibility of code on most modern browsers labels Jan 9, 2021
@0xedward 0xedward changed the title Display formatted HTML back to user Format, syntax-highlight and display DOMParser HTML output back to user Jan 9, 2021
@0xedward
Copy link
Owner Author

0xedward commented Jan 9, 2021

Tried prism.js and rainbow.js. Looked into highlight.js but it wasn't lightweight enough compared to the earlier two options

@0xedward 0xedward self-assigned this Jan 9, 2021
@0xedward 0xedward added this to the Initial Release (1.0.0) milestone Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant