https://bugzilla.wikimedia.org/show_bug.cgi?id=34763
--- Comment #10 from Bawolff <[email protected]> 2012-03-04 03:14:48 UTC --- Ok, there's a significantly easier way than what I suggested above: $nonParsedText = $parser->insertStripItem( "DO NOT PARSE TEXT" ); $parser->recursiveTagParse( "some text... " . $nonParsedText . "...more text" ); This would make it mostly non-parsed (I think, I haven't tested it). Or more specifically, it will make it non-parsed to the same extent that the return value of a parserHook <tag> extension is non-parsed. (So doBlockLevels is still done on the text, and a couple other things. Most people probably won't notice). To really totally make it non-parsed you can get the parser's mStripState object and do something like: $nonParsedText = $parser->mStripState->addNoWiki( "{$parser->mUniqPrefix}-rssExtension-" . sprintf( '%08X', $parser->mMarkerIndex++ ) . Parser::MARKER_SUFFIX, "Text not to parse" ); but that's more complicated, and I'm not really sure if extensions are supposed to touch the parser's internal variables like that. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
