From b7ce9a84f0775eb24f0a27d3816bf57b774a2927 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 02 Feb 2008 10:50:48 +0000 Subject: added util::attr_escape escaping string for inclusion into x(ht)ml attributes Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/util.h b/include/opkele/util.h index 6f3ddf6..719f951 100644 --- a/include/opkele/util.h +++ b/include/opkele/util.h @@ -100,6 +100,13 @@ namespace opkele { string url_encode(const string& str); /** + * Make string suitable for using as x(ht)ml attribute. + * @param str string to escape + * @return escaped string + */ + string attr_escape(const string& str); + + /** * Convert number to string * @param l number * @return string representation -- cgit v0.9.0.2