diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-06-24 11:06:24 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-06-24 11:06:24 +0000 |
commit | 561652bd7ee48748216a215ccbffa505bca63a0d (patch) | |
tree | 1315937b559f18ee77cc01ed932ac48acc26b6e6 /src/mochiweb/mochiweb_html.erl | |
parent | d054aef0e2419db31d8277a051b54abdf6ee1d34 (diff) |
Updated MochiWeb in trunk to r82.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@671125 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/mochiweb/mochiweb_html.erl')
-rw-r--r-- | src/mochiweb/mochiweb_html.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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) -> |