johnfmorton / SuperGeekery-Tag-Stripper

Strip all, some, or all except some HTML tags from strings with this easy-to-use Expression Engine add on.
http://devot-ee.com/add-ons/supergeekery-tag-stripper/
MIT License
5 stars 1 forks source link

Compatibility Update #2

Closed areynold closed 5 years ago

areynold commented 5 years ago

Summary

Known Issues

  1. ExpressionEngine's Markdown parser does not recognize language declarations in fenced code blocks, causing font formatting issues on the plugin usage page in EE3-5.

Testing

All test steps assume localhost as webserver.

EE2 Installation

  1. Clone or copy the plugin files to <webroot>/system/expressionengine/third_party/tagstripper/.
  2. Point your browser to https://localhost/admin.php?/cp/addons_plugins. SuperGeekery Tag Stripper should be listed at version 1.1.0.

EE3+ Installation

  1. Clone or copy the plugin files to <webroot>/system/user/addons/tagstripper/.
  2. Point your browser to http://localhost/ee-current/admin.php?/cp/addons. SuperGeekery Tag Stripper should be listed as available for install.
  3. Click Install. SuperGeekery Tag Stripper should be installed at version 1.1.0.
  4. Click the book icon in Tagstripper's row. This repo's README file should be displayed as documentation. See Known Issue 1.
  5. 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>
johnfmorton commented 5 years ago

Thanks.