Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am using Vue with Laravel. How can I remove HTML tags from content in Vue component
Its like this
<p> some content </p>
I want it like this
Some content
Thanks
Use regEx to remove html tags from string.. I think this example will help you, check the console in snippet
regEx
var str = "<p> some content </p>"; console.log(str.replace(/<\/?[^>]+(>|$)/g, ""));
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.