Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
ivkosh committed Mar 13, 2011
1 parent e0e0bad commit a6a529c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rdbl.erl
Expand Up @@ -124,6 +124,8 @@ extract_content_type(Tree, DefaultContentType) ->
%% takes document contens (Body) and document context (Ctx, see url_context/1) %% takes document contens (Body) and document context (Ctx, see url_context/1)
%% returns simplified page as a string() %% returns simplified page as a string()
%% @end %% @end

% TODO: add more params here
simplify_page(Body0, Ctx, DefaultContentType) -> simplify_page(Body0, Ctx, DefaultContentType) ->
Body = re:replace(Body0, " ", " ", [global]), % mochiweb_html:parse has a bug with  , just hotfix 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 try mochiweb_html:parse(Body) of % parse() will not work if Body contains no html tags
Expand Down

0 comments on commit a6a529c

Please sign in to comment.