mirror of https://github.com/apache/lucene.git
ignore case when comparing tag names
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@646799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f9879d5ef
commit
dc9bb60c4a
|
@ -441,7 +441,7 @@ public class HTMLStripReader extends Reader {
|
||||||
// We only get to this point after we have read the
|
// We only get to this point after we have read the
|
||||||
// entire tag. Now let's see if it's a special tag.
|
// entire tag. Now let's see if it's a special tag.
|
||||||
String name=sb.toString();
|
String name=sb.toString();
|
||||||
if (name.equals("script") || name.equals("style")) {
|
if (name.equalsIgnoreCase("script") || name.equalsIgnoreCase("style")) {
|
||||||
// The content of script and style elements is
|
// The content of script and style elements is
|
||||||
// CDATA in HTML 4 but PCDATA in XHTML.
|
// CDATA in HTML 4 but PCDATA in XHTML.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue