p4ulypops / jquery-clean

Automatically exported from code.google.com/p/jquery-clean
0 stars 0 forks source link

is this a bug? #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
clean(
  '<div><pre><code class="language-js"><span>bb</span></code></pre><span>aa</span></div>',
  '<div><pre><code class="language-js">bb</code></pre>aa</div>',
  {removeTags:['a','span','br']}
)

src: <div><pre><code 
class="language-js"><span>bb</span></code></pre><span>aa</span></div>

actual  : '<div><pre><code 
class="language-js"><span>bb</span></code></pre>aa</div>'

expected: '<div><pre><code class="language-js">bb</code></pre>aa</div>'

Original issue reported on code.google.com by liuyon...@gmail.com on 2 Feb 2013 at 6:26

GoogleCodeExporter commented 9 years ago
after reading the source, found <pre> is tagProtect.

I'm trying to find a lib to convert html to evernote's ENML

Original comment by liuyon...@gmail.com on 3 Feb 2013 at 2:10

GoogleCodeExporter commented 9 years ago
yes, liuyong25, and its not something that can be changed by the options either
thanks for the note

Original comment by antixsof...@gmail.com on 4 Feb 2013 at 2:47