fix html parsing of user profile description, issue #56

This commit is contained in:
Morgan McMillian 2020-02-05 22:37:32 -08:00
parent bd441eac0e
commit 8c1d527068
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
import bb.cascades 1.4
import com.netimage 1.0
import "parser.js" as Parser
Container {
id: useritem
@ -54,7 +55,7 @@ Container {
Container {
Label {
id: description
text: ListItemData.content.html
text: Parser.fixPostHtml(ListItemData.content.html)
multiline: true
textFormat: TextFormat.Html
}

View file

@ -256,12 +256,12 @@
<context>
<name>UserItem</name>
<message>
<location filename="../assets/UserItem.qml" line="67"/>
<location filename="../assets/UserItem.qml" line="68"/>
<source>Unfollow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/UserItem.qml" line="67"/>
<location filename="../assets/UserItem.qml" line="68"/>
<source>Follow</source>
<translation type="unfinished"></translation>
</message>