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

View file

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