apol added a comment.

  Because if you enter `my <u>potato</u>` it gets styled, which shouldn't 
happen.
  
  I suggest just doing the following:
  
    diff --git a/discover/qml/ApplicationsListPage.qml 
b/discover/qml/ApplicationsListPage.qml
    index 4445a195..e094b667 100644
    --- a/discover/qml/ApplicationsListPage.qml
    +++ b/discover/qml/ApplicationsListPage.qml
    @@ -52,11 +52,8 @@ DiscoverPage {
     
         function escapeHtml(unsafe) {
             return unsafe
    -            .replace(/&/g, "&amp;")
                 .replace(/</g, "&lt;")
    -            .replace(/>/g, "&gt;")
    -            .replace(/"/g, "&quot;")
    -            .replace(/'/g, "&#039;");
    +            .replace(/>/g, "&gt;");
         }
     
         background: Rectangle {

REPOSITORY
  R134 Discover Software Store

REVISION DETAIL
  https://phabricator.kde.org/D27079

To: ngraham, #vdg, #discover_software_store, apol
Cc: plasma-devel, apol, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, ahiemstra, mart

Reply via email to