Sn1per has uploaded a new change for review.

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

Change subject: Allow bold and italic text
......................................................................

Allow bold and italic text

Added <b> and <i> to list of allowed HTML
tags in mmv.HtmlUtils.js.

Bug: T69887
Change-Id: I16833f218e2f64586aa13925356fa2b8b7ec3100
---
M resources/mmv/mmv.HtmlUtils.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultimediaViewer 
refs/changes/92/182292/1

diff --git a/resources/mmv/mmv.HtmlUtils.js b/resources/mmv/mmv.HtmlUtils.js
index efb4465..6b19e1c 100644
--- a/resources/mmv/mmv.HtmlUtils.js
+++ b/resources/mmv/mmv.HtmlUtils.js
@@ -214,7 +214,7 @@
                        $html = this.wrapAndJquerify( html );
                        this.filterInvisible( $html );
                        this.appendWhitespaceToBlockElements( $html );
-                       this.whitelistHtml( $html, 'a, span' );
+                       this.whitelistHtml( $html, 'a, span, i, b' );
                        cache.textWithLinks[html] = this.mergeWhitespace( 
$html.html() );
                }
                return cache.textWithLinks[html];

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16833f218e2f64586aa13925356fa2b8b7ec3100
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: Sn1per <[email protected]>

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

Reply via email to