* Strip closing tags that were not open and close tags that were not closed.
*
* @param html_code_orig input html code. Non case sensitive.
-* @param redirect_prefix Prefix that will be added to the url in case of a valid
-* html "a" tag.
* @param strip if true disallowed tags are stripped otherwise throw an error.
* Defaults to true.
* @return output html code
*/
const string restrict_html(const string &html_code_orig,
- const std::string &redirect_prefix,
bool strip)
{
string html_code(html_code_orig);
return result.c_str();
}
-const string restrict_html(const string &html_code_orig, bool strip)
-{
- return restrict_html(html_code_orig, REDIRECT_PREFIX, strip);
-}
-
/**
* @brief Replace all "+" characters found in s to spaces (" ").
*
namespace I2n
{
-
- const std::string restrict_html(const std::string &html_code_orig,
- const std::string &redirect_prefix,
- bool strip=true);
const std::string restrict_html(const std::string &html_code_orig,
bool strip=true);