1/* 2 * Copyright 2004-2008, François Revol, <revol@free.fr>. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _STRING_UTILS_H 6#define _STRING_UTILS_H 7 8/* converts a string to a format suitable for use in urls 9 * ex: "foo bar+" -> "foo+bar%2D" 10 * caller must free() result 11 */ 12extern char *urlify_string(const char *str); 13 14/* converts string with html entities to regular utf-8 string 15 * ex: "François" -> "François" 16 * caller must free() result 17 */ 18extern char *unentitify_string(const char *str); 19 20#endif /* _STRING_UTILS_H */ 21