BBCODEParser has been moved to pikotools library

This commit is contained in:
2021-07-17 13:56:37 +02:00
parent 17bd48ece3
commit 1899d5ee17
3 changed files with 3 additions and 766 deletions

View File

@@ -36,7 +36,7 @@
#include "core/crypt.h"
#include "core/misc.h"
#include "templates/misc.h"
#include "core/bbcodeparser.h"
#include "html/bbcodeparser.h"
#include "core/request.h"
#include "core/users.h"
#include "core/groups.h"
@@ -414,7 +414,7 @@ void ItemContent::print_content(HtmlTextStream & out, const pt::WTextStream & co
out_temp.clear();
out_temp.reserve(content.size()*2);
BBCODEParser bbcode_parser; // IMPROVE ME move me to a better place
pt::BBCODEParser bbcode_parser; // IMPROVE ME move me to a better place
std::wstring tmp_string;
content.to_str(tmp_string);
bbcode_parser.Filter(tmp_string.c_str(), out_temp);
@@ -455,7 +455,7 @@ void ItemContent::print_content(HtmlTextStream & out, const std::wstring & conte
out_temp.clear();
out_temp.reserve(content.size()*2);
BBCODEParser bbcode_parser; // IMPROVE ME move me to a better place
pt::BBCODEParser bbcode_parser; // IMPROVE ME move me to a better place
bbcode_parser.Filter(content.c_str(), out_temp);
out << R(out_temp);
}