Commit e37bf191 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_officejs_support_request_ui: use asStrippedHTML instead of getTextContent

parent 207bf91e
...@@ -26,7 +26,7 @@ comment_list = [] ...@@ -26,7 +26,7 @@ comment_list = []
for post in post_list: for post in post_list:
owner = post.Base_getOwnerTitle() owner = post.Base_getOwnerTitle()
time_stamp = formatDate(post.getStartDate()) time_stamp = formatDate(post.getStartDate())
content = post.getTextContent() content = post.asStrippedHTML()
successor_list = post.getSuccessorValueList() successor_list = post.getSuccessorValueList()
successor_name = successor_link = None successor_name = successor_link = None
if successor_list: if successor_list:
......
...@@ -4,6 +4,6 @@ portal = context.getPortalObject() ...@@ -4,6 +4,6 @@ portal = context.getPortalObject()
post_list = portal.portal_catalog(portal_type="HTML Post", strict_follow_up_uid=context.getUid(), sort_on=(('modification_date', 'descending'),), limit=1, validation_state="published") # with id keyword, this function will return a sequence data type which contains one element. post_list = portal.portal_catalog(portal_type="HTML Post", strict_follow_up_uid=context.getUid(), sort_on=(('modification_date', 'descending'),), limit=1, validation_state="published") # with id keyword, this function will return a sequence data type which contains one element.
if len(post_list): if len(post_list):
return post_list[0].getTextContent() return post_list[0].asStrippedHTML()
else: else:
return None return None
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment