Remove HTML
Developer
3rd Party (Free)
313 downloads (last 90 days)
EE Version Support
- ExpressionEngine 1.x
- ExpressionEngine 2
- ExpressionEngine 3
Compatibility
If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.
- Updater
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Content Elements
- Better Workflow
- Matrix
- Grid
- Webservice
- Publisher
Requirements
- jQuery for the Control Panel
Add-On Type(s)
Plugin
Tags
Remove (strips) all HTML tags from supplied text. Handy if fieldtype data is formatted as 'XHTML' but in one template you need that data displayed as 'none', ie plain text.
Remove HTML tags - EE Plugin
- Repro on GitHub: GitHub.com
Version History
- 1.1, 27/01/2017
Forked and updated for EE3 by elsullivano. - 1.0, 17/12/2012
1st release. EE1 and EE2 versions.
Requirements
- PHP5+
- ExpressionEngine 2.4 or later.
- ExpressionEngine 1.7.x
Description
Expression engine Add-on to remove all HTML tags from text. Specifically it removes any text in the format <tag>
or </tag>
. So any text in that format will be removed even if it's not a valid HTML tag.
Usage
Example
Setting up a field type with 'Text Formatting' of 'XHTML' to preserve line-breaks. When displayed in a template the correct HTML will output with the content. It is not possible to choose the formatting of this field via template tags.
If you need to use the field data in a form field, eg. textarea you would not want the HTML code to display as well. This Add-on removes the formatting when displayed in template (original formatting is preserved in EE).
Eg. This:
<p>Some content in a field, added via the CP.<br>A new line of text.</p>
Outputs as:
Some content in a field, added via the CP.
A new line of text.
Template Tags
Assuming you have named your field 'my_field' as a custom field and the Text Formatting is set to anything other than 'none'.
{exp:remove_html}
{my_field}
{/exp:remove_html}
Usage
Installation
EE 2
Add 'removehtml' folder to system > thirdparty folder
EE 1
Place 'pi.remove_html.php' in to the system > plugins folder
Download Remove HTML
EE Support | Downloads | Add-On Version | Release Date |
---|---|---|---|
2.4.0+ | Download | 1.0 | Dec 18, 2012 |
3.1.0+ | Download | 1.1 | Jan 28, 2017 |
This entry was created December 19, 2012, 10:28 am.
This entry was last updated January 29, 2017, 8:49 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.
4 Reviews:
kyq 01.27.17
Great plugin! I’ve modified it to work with EE3: https://github.com/elsullivano/remove_html
Chris Barber-Riley 11.21.13
Perfect - exactly what was needed.
jumpfrog 09.19.13
Just works!
NotAnton 04.15.13
It does exactly what is says on the tin. Add works.