Click Install. SuperGeekery Tag Stripper should be installed at version 1.1.0.
Click the book icon in Tagstripper's row. This repo's README file should be displayed as documentation. See Known Issue 1.
Click the checkbox at the end of Tagstripper's row. Change the dropdown selection to Uninstall, and click Submit. Tagstripper should be listed as available for install as in step 2.
Function Tests (EE 2-5)
Plugin functionality should be identical across all versions.
Using either an existing ExpressionEngine template or the sample template below, check that Tagstripper strips tags as expected. Sample template uses snippets from README.
Sample Template
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Tagstripper Testing</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Tagstripper Testing</h1>
<h2>Strip all tags</h2>
{exp:tagstripper:stripAllTags}
<h1>Example of exp:tagstripper:stripAllTags</h1>
<h2>This is an h2 tag.</h2>
<a href="http://www.flickr.com/photos/morton/3969410575/"
title="My Monitors Rock by John Morton, on Flickr">
A photo of my <strong>computer</strong>.
</a>
<img src="http://farm3.static.flickr.com/2609/3969410575_0987891ac7_t.jpg"
width="100" height="75" alt="My Monitors Rock" />
{/exp:tagstripper:stripAllTags}
<h2>Preserve specific tags</h2>
{exp:tagstripper:tagsToSave tags="h1"}
<h1>Example of exp:tagstripper:tagsToSave tags="h1"</h1>
<a href="http://www.flickr.com/photos/morton/3969410575/" title="My Monitors Rock by John Morton, on Flickr">A photo of my <strong>computer</strong>.</a>
<img src="http://farm3.static.flickr.com/2609/3969410575_0987891ac7_t.jpg" width="100" height="75" alt="My Monitors Rock" />
{/exp:tagstripper:tagsToSave}
<h2>Strip specific tags</h2>
{exp:tagstripper:tagsToStrip tags="img|a"}
<h1>Example of exp:tagstripper:tagsToStrip tags="img|a"</h1>
<a href="http://www.flickr.com/photos/morton/3969410575/" title="My Monitors Rock by John Morton, on Flickr">A photo of my <strong>computer</strong>.</a>
<img src="http://farm3.static.flickr.com/2609/3969410575_0987891ac7_t.jpg" width="100" height="75" alt="My Monitors Rock" />
{/exp:tagstripper:tagsToStrip}
<h2>Encode Special Characters</h2>
{exp:tagstripper:stripAllTags escapeHTMLchars="true"}
<h1>A foot is 12" long.</h1>
{/exp:tagstripper:stripAllTags}
<h2>Strip NBSP</h2>
{exp:tagstripper:stripAllTags stripNbsp="true"}
<p> I don't need no stinking non-breaking space character.</p>
{/exp:tagstripper:stripAllTags}
<h2>Strip Linebreaks</h2>
{exp:tagstripper:stripAllTags stripLineBreaks="true"}
<p>I don't need no stinking paragraph tags removed which leave left over line breaks.</p>
<p>Line breaks can make for messy meta data.</p>
<h2>I say, <em>Out!</em></h2>
{/exp:tagstripper:stripAllTags}
</body>
</html>
Summary
Known Issues
Testing
All test steps assume localhost as webserver.
EE2 Installation
<webroot>/system/expressionengine/third_party/tagstripper/
.EE3+ Installation
<webroot>/system/user/addons/tagstripper/
.Function Tests (EE 2-5)
Plugin functionality should be identical across all versions.
Using either an existing ExpressionEngine template or the sample template below, check that Tagstripper strips tags as expected. Sample template uses snippets from README.
Sample Template