mstch/test/data/escaped.hpp

18 lines
376 B
C++
Raw Normal View History

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