Pull description into seperate function

This commit is contained in:
Omar Roth
2018-08-10 08:44:23 -05:00
parent 09d4d46fcd
commit 9a78b55c53
4 changed files with 12 additions and 38 deletions

View File

@@ -273,7 +273,7 @@ def generate_captcha(key)
return {challenge: challenge, token: token}
end
def description_html_to_description(description_html)
def html_to_description(description_html)
if !description_html
description = ""
description_html = ""
@@ -284,5 +284,5 @@ def description_html_to_description(description_html)
description = XML.parse_html(description).content.strip("\n ")
end
return description
return description, description_html
end