<td>replace(string, "from", "to") replaces all occurrences of "from"
in the string with "to". The first parameter must not be a literal string.
</td><td></td></tr>
+ <tr><td><code>escapehtml</code></td>
+ <td>Escape a HTML string</td><td></td></tr>
</table>
}
#endif
+static const char *escapehtml_func(ap_expr_eval_ctx_t *ctx, const void *data,
+ const char *arg)
+{
+ return ap_escape_html(ctx->p, arg);
+}
+
static int replace_func_parse_arg(ap_expr_lookup_parms *parms)
{
const char *original = parms->arg;
{ ldap_func, "ldap", NULL, 0 },
#endif
{ replace_func, "replace", replace_func_parse_arg, 0 },
+ { escapehtml_func, "escapehtml", NULL, 0 },
{ NULL, NULL, NULL}
};