question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: Remove HTML and formatting from text on paste

See original GitHub issue

I’m submitting a

  • Regression (a behavior that used to work and stopped working in a new release)
  • Bug report
  • Enhancement
  • Feature request
  • Documentation issue or request

Description

It would be nice to have an option to strip HTML when pasting. Maybe we can do it using Schemas, but I was unable to get it to work. For instance, I would like to only keep <strong>, <em>,<u> and <br> elements.

Version Information

ngx-editor: 8.0.1
angular: 10.2.4

Browser

  • Chrome - x.x.x
  • Mozilla Firefox - x.x.x
  • Opera - x.x.x
  • Microsoft Edge - x.x.x

NOTE: Replace x.x.x with your version information

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
steffensbolacommented, Mar 12, 2021

Yup! That does the trick. Perhaps if you could include the plugin example in the docs that would help even more people.

Thank’s for the support.

0reactions
github-actions[bot]commented, May 22, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Online HTML Stripper. Remove HTML and formatting from text
Free online tool to strip HTML from any text. Remove all HTML and formatting from your text. StripHTML.com gives quick and easy way...
Read more >
How to Strip Formatting When You Copy and Paste Text: 5 Ways
On the menu that appears, click the three-dot button next to the item that you want to paste without formatting. This will show...
Read more >
Strip html tags when pasting foreign content. #123 - GitHub
Hi, Some of my users often have problems understanding that if they copy text from a foreign website that comes with its own...
Read more >
Removing rich text formatting for copy + paste? (Cross Browser)
Whenever a user copies text from my AspDotNetStorefront site and paste it onto a Word document, the pasted text includes a gray background....
Read more >
3 Simple Ways to Strip Styling & Formatting from Text in Mac ...
3 Simple Ways to Strip Styling & Formatting from Text in Mac OS X ; 1: Strip Styling & Formatting with a Special...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found