mstch/test/data/escaped.hpp

18 lines
376 B
C++
Raw Normal View History

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{"&quot; \"'<>/"};
}
};
const mstch::node escaped_data = std::make_shared<escaped>();