Questions tagged [strip-html]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
461 views

How can I strip <p> tags from entry content, but only if it's wrapped around a <figure>?

On occasion a <figure> tag will make it through WYGWAM with a <p> wrapped around it which breaks my layout (and is incorrect formatting anyway). Can I remove just the <p> tags that ...
2
votes
1answer
678 views

Need to upload an HTML file and display contents of DIV and nothing else

I have a case in which a client needs to be able to upload a JS and an HTML file to be displayed on a page via file upload fields. The problem is that the HTML file that is delivered to the client ...
2
votes
1answer
322 views

Wygwam not stripping markup

Since Wygwam 2.3.1 it's supposed to have "Set the forcePasteAsPlainText CKEditor config setting to 'Yes' by default" (pasted from release notes). But I'm still getting a lot of junk code (inline ...
1
vote
2answers
629 views

Strip line breaks, quotes, HTML out of SQL query result for CKEditor field contents (for CSV output)

I have a very simple "PHP allowed" EE template that queries the EE db and generates CSV reports from it. I need to add to one of these reports the contents of one particular channel field, which ...
1
vote
1answer
92 views

content cleaning

About to kick-off an 1.x to 2.x upgrade. For the most part the site is in decent shape. Unfortunately though we're dealing with some WYSIWYG fields where content that's been pasted from Word and ...
1
vote
1answer
27 views

Sanitise low search keywords

What's a good method for stripping HTML from our site search? I've found that it's possible to inject HTML directly into our page like this: https://website.co.uk?keywords="<svg/onload%3Dconfirm(//...