2015-04-16 19:05:59 +00:00
|
|
|
class escaped: public mstch::object {
|
|
|
|
public:
|
|
|
|
escaped() {
|
2015-04-17 00:07:14 +00:00
|
|
|
register_method("title", this, &escaped::title);
|
|
|
|
register_method("entities", this, &escaped::entities);
|
2015-04-16 19:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mstch::node title() {
|
|
|
|
return std::string{"Bear > Shark"};
|
|
|
|
};
|
|
|
|
|
|
|
|
mstch::node entities() {
|
|
|
|
return std::string{"" \"'<>/"};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const mstch::node escaped_data = std::make_shared<escaped>();
|