diff --git a/qml/pages/ArticlePage.qml b/qml/pages/ArticlePage.qml index a717f3e..4ac555e 100644 --- a/qml/pages/ArticlePage.qml +++ b/qml/pages/ArticlePage.qml @@ -26,6 +26,7 @@ Page { id: articlePage allowedOrientations: Orientation.All + property string title property string content SilicaWebView { @@ -33,7 +34,27 @@ Page { anchors.fill: parent Component.onCompleted: { - loadHtml( articlePage.content ) + loadHtml( wrapArticleContent() ) } } + + function wrapArticleContent() { + var html = + "" + + "" + + "" + + "" + + "" + + "
" + + "

" + articlePage.title + "

" + + articlePage.content + + "
" + + "" + + "" + + return html + } }