Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/268424

Change subject: Don't render wikidata description as HTML
......................................................................

Don't render wikidata description as HTML

There is no reason to treat the wikidata description as HTML.
Remember three braces = render as HTML which can be problematic with
user inputted content. Use two braces when rendering.

Bug: T125684
Change-Id: I0291bf04e6d2f7ef62843b1c77cfb7123690e7ca
---
M resources/mobile.pagelist/PageListItem.hogan
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/24/268424/1

diff --git a/resources/mobile.pagelist/PageListItem.hogan 
b/resources/mobile.pagelist/PageListItem.hogan
index d50c5d0..6109448 100644
--- a/resources/mobile.pagelist/PageListItem.hogan
+++ b/resources/mobile.pagelist/PageListItem.hogan
@@ -10,7 +10,7 @@
       {{#thumbnail}}data-style="background-image: url( {{thumbnail.source}} 
)"{{/thumbnail}}></div>
     <h3>{{{displayTitle}}}</h3>
     {{#wikidataDescription}}
-    <div class="wikidata-description">{{{wikidataDescription}}}</div>
+    <div class="wikidata-description">{{wikidataDescription}}</div>
     {{/wikidataDescription}}
     {{#lastModified}}
     <div class="info">{{lastModifiedMsg 'hi'}} {{lastModified}}</div>

-- 
To view, visit https://gerrit.wikimedia.org/r/268424
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0291bf04e6d2f7ef62843b1c77cfb7123690e7ca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to