I’m using stripHTML to strip HTML entities like –
in the Google Sheets module
but it’s not being stripped. Is this a bug or a feature?
I’m using stripHTML to strip HTML entities like –
in the Google Sheets module
Hi @nickweisser,
Welcome to the Make community!
– is not really HTML, so how can it be stripped? – is ASCII code. And unfortunately, there is no such thing as unescapeHTML (there is a request for it: https://www.make.com/en/platform-ideas/p/functions-unescapehtml)
Do you have the original HTML? Then I would advise to use the stripHTML.
Cheers,
Henk
Thanks for your reply, @Henk-Operative. I upvoted unescapeHTML. I’m working with the WordPress plugin API which returns some plugin names with those HTML entities. Probably, I could just use a search/replace?
Hi @nickweisser,
Yes you can! If you don’t have the original HTML, that is the way to go.
You can use Replace module in the text parser, or the inline replace()
function in combination with a Regex to find and replace the ASCII code. For example:
&#\d+;
Which will find ASCII codes based on &# + some digits + ;.
Cheers,
Henk