From 561652bd7ee48748216a215ccbffa505bca63a0d Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Tue, 24 Jun 2008 11:06:24 +0000 Subject: Updated MochiWeb in trunk to r82. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@671125 13f79535-47bb-0310-9956-ffa450edef68 --- src/mochiweb/mochiweb_html.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mochiweb/mochiweb_html.erl') diff --git a/src/mochiweb/mochiweb_html.erl b/src/mochiweb/mochiweb_html.erl index 39ce51e6..59181686 100644 --- a/src/mochiweb/mochiweb_html.erl +++ b/src/mochiweb/mochiweb_html.erl @@ -101,7 +101,7 @@ to_html(Node) when is_tuple(Node) -> to_html(Tokens) when is_list(Tokens) -> to_html(Tokens, []). -%% @spec escape(string() | binary()) -> string() +%% @spec escape(string() | atom() | binary()) -> binary() %% @doc Escape a string such that it's safe for HTML (amp; lt; gt;). escape(B) when is_binary(B) -> escape(binary_to_list(B), []); @@ -110,7 +110,7 @@ escape(A) when is_atom(A) -> escape(S) when is_list(S) -> escape(S, []). -%% @spec escape_attr(S::string()) -> string() +%% @spec escape_attr(string() | binary() | atom() | integer() | float()) -> binary() %% @doc Escape a string such that it's safe for HTML attrs %% (amp; lt; gt; quot;). escape_attr(B) when is_binary(B) -> -- cgit v1.2.3