X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..578dc95029e761a59911b7c1bc09f59384d64ddf:/src/html/m_layout.cpp?ds=sidebyside diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index aeb0478d49..e042da6e6a 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -224,6 +224,14 @@ TAG_HANDLER_END(BLOCKQUOTE) +// Tag handler for tags that we have to ignore, otherwise non-text data +// would show up as text: +TAG_HANDLER_BEGIN(DoNothing, "SCRIPT") + TAG_HANDLER_PROC(tag) + { + return true; + } +TAG_HANDLER_END(DoNothing) @@ -236,6 +244,7 @@ TAGS_MODULE_BEGIN(Layout) TAGS_MODULE_ADD(TITLE) TAGS_MODULE_ADD(BODY) TAGS_MODULE_ADD(BLOCKQUOTE) + TAGS_MODULE_ADD(DoNothing) TAGS_MODULE_END(Layout)