support embedding in application/xhtml+xml pages
[phorkie.git] / data / templates / display-sidebar-urls.htm
index 446810cff35f1cdda19f4dc406e0323517c7358d..101f2ddbd84ed798a6b5d8892ed0f385f8446b86 100644 (file)
@@ -1,5 +1,5 @@
 <label id="url-embed" for="url-embed-input"><b>Embed</b> HTML code</label>
-<input id="url-embed-input" type="text" class="fullwidthtext" value='&lt;script src="{{repo.getLink('embed', null, true)}}" type="text/javascript"&gt;&lt;/script&gt;'/>
+<input id="url-embed-input" type="text" class="fullwidthtext" value="{{htmlhelper.getRepositoryEmbedCode(repo)}}"/>
 
 {% if repo.getCloneURL(true) %}
 <label id="url-public" for="url-public-input"><b>Public</b> clone URL</label>