mstch/test/data/escaped.hpp

16 lines
346 B
C++
Raw Normal View History

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