/////////////////////////////////////////////////////////////////////////// Encode values prior to serialization. [ -> &open; ] -> &close;
| 1614 | // [ -> &open; |
| 1615 | // ] -> &close; |
| 1616 | const std::string Task::encode(const std::string& value) const { |
| 1617 | auto modified = str_replace(value, "[", "&open;"); |
| 1618 | return str_replace(modified, "]", "&close;"); |
| 1619 | } |
| 1620 | |
| 1621 | //////////////////////////////////////////////////////////////////////////////// |
| 1622 | // Decode values after parse. |
no outgoing calls
no test coverage detected