How to remove HTML tags from a string in JavaScript

How to remove HTML tags from a string in JavaScript

Code With Bubb

2 года назад

4,774 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

codebubb
codebubb - 05.05.2022 18:22

I'll be doing a video on schema validation next week to follow this up!

Ответить
Vishwa Jay
Vishwa Jay - 31.10.2022 08:53

This video was absolutely fantastic!

I liked, subscribed, and here's a comment.

But now I'd like to suggest a video, if I may?

Forgive the length, I feel it's necessary because of the sheer number of people who answer a similar or related question, which somehow sidesteps the original question altogether..

How about a video about the use of Selection and Range that allows us to "toggle" a tag around the selection? I get that we can add a tag, possibly with surroundContent, but how might we take it away afterward? The surroundContent functionality is one-way, as it should be. But what's the inverse of that?

As an example: if I have an `Absolutely <em>fantastic</em> sentence with <em>multiple</em> uses of a <em>single tag</em> within,` then how might I be able to select whichever tag I'd like?

Us beginners don't even know how to ask the question, apparently. But that's one question I keep having zero luck with (after a year of asking around). I hope it's clear enough.

Ответить
Euphy
Euphy - 16.05.2022 10:14

Hi! How can I get a sound effect to play when I hover over a specific word? I just started learning CSS/HTML

Ответить