Permalink
Browse files

small

  • Loading branch information...
ivkosh committed Mar 13, 2011
1 parent e0e0bad commit a6a529c13de713543d0fd526bb367bf4e571db44
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/rdbl.erl
View
@@ -124,6 +124,8 @@ extract_content_type(Tree, DefaultContentType) ->
%% takes document contens (Body) and document context (Ctx, see url_context/1)
%% returns simplified page as a string()
%% @end
+
+% TODO: add more params here
simplify_page(Body0, Ctx, DefaultContentType) ->
Body = re:replace(Body0, " ", " ", [global]), % mochiweb_html:parse has a bug with  , just hotfix
try mochiweb_html:parse(Body) of % parse() will not work if Body contains no html tags

0 comments on commit a6a529c

Please sign in to comment.