/** * Returns the result of subsequent parsing to the <cms:parse< tag implementation.<p> * * @param encoding the encoding to use for parsing * @param html the html content to parse * @param noAutoCloseTags a list of upper case tag names for which parsing / visiting should not correct missing closing tags. * * @return the result of subsequent parsing to the <cms:parse< tag implementation * * @throws ParserException if something goes wrong at parsing * @throws CmsException if something goes wrong at accessing OpenCms core functionality */ public String doParse(String html, String encoding, List noAutoCloseTags) throws ParserException, CmsException { m_visitor = createVisitorInstance(); m_visitor.setNoAutoCloseTags(noAutoCloseTags); String result = ""; m_visitor.process(html, encoding); result = m_visitor.getResult(); return result; }
/** * Returns the result of subsequent parsing to the <cms:parse< tag implementation.<p> * * @param encoding the encoding to use for parsing * @param html the html content to parse * @param noAutoCloseTags a list of upper case tag names for which parsing / visiting should not correct missing closing tags. * * @return the result of subsequent parsing to the <cms:parse< tag implementation * * @throws ParserException if something goes wrong at parsing * @throws CmsException if something goes wrong at accessing OpenCms core functionality */ public String doParse(String html, String encoding, List<String> noAutoCloseTags) throws ParserException, CmsException { m_visitor = createVisitorInstance(); m_visitor.setNoAutoCloseTags(noAutoCloseTags); String result = ""; m_visitor.process(html, encoding); result = m_visitor.getResult(); return result; }