pike.git / lib / modules / Search.pmod / Filter.pmod / HTML.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Filter.pmod/HTML.pmod:29:    parser->lazy_entity_end(1);    parser->ignore_unknown(1);    parser->match_tag(0);       parser->add_quote_tag("?", return_zero, "?");       parser->_set_tag_callback(lambda(Parser.HTML p, string data) {    // Do nothing! Callback still needed so that    // unknown tags aren't sent to    // _set_data_callback. +  return ({});    });       constant ignore_tags = ({ "script", "style", });    parser->add_containers(mkmapping(ignore_tags, ({""})*sizeof(ignore_tags)));       cleaner = Parser.html_entity_parser(1);    cleaner->case_insensitive_tag(1);    cleaner->lazy_entity_end(1);    cleaner->ignore_unknown(1);    cleaner->match_tag(0);