2015-04-16 19:05:59 +00:00
|
|
|
class escaped: public mstch::object {
|
|
|
|
public:
|
|
|
|
escaped() {
|
2015-04-21 13:04:11 +00:00
|
|
|
register_methods(this, {
|
|
|
|
{"title", &escaped::title}, {"entities", &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>();
|