mstch/test/data/escaped.hpp
2015-04-21 15:04:11 +02:00

18 lines
No EOL
376 B
C++

class escaped: public mstch::object {
public:
escaped() {
register_methods(this, {
{"title", &escaped::title}, {"entities", &escaped::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>();