1
0
Fork 0

Avoid escaping relevant template variables

This commit is contained in:
Hypolite Petovan 2018-12-13 22:35:51 -05:00
commit c407fb7963
165 changed files with 312 additions and 313 deletions

View file

@ -2,7 +2,7 @@
<div id="contact-edit-wrapper" >
{{* Insert Tab-Nav *}}
{{$tab_str}}
{{$tab_str nofilter}}
<div id="contact-edit-nav-wrapper" >
@ -57,7 +57,7 @@
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
{{if $xmpp}}<dl><dt>{{$xmpp_label}}</dt><dd>{{$xmpp}}</dd></dl>{{/if}}
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about}}</dd></dl>{{/if}}
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about nofilter}}</dd></dl>{{/if}}
</div>{{* End of contact-edit-links *}}
<div id="contact-edit-links-end"></div>

View file

@ -3,7 +3,7 @@
<h3>{{$title}}</h3>
<p>
{{$desc}}
{{$desc nofilter}}
</p>
<form id="event-edit-form" action="{{$post}}" method="post" >

View file

@ -105,7 +105,7 @@
<a class=" {{$nav.apps.2}}" title="{{$nav.apps.3}}" >{{$nav.apps.1}}</a>
<ul id="nav-apps-menu" class="menu-popup">
{{foreach $apps as $ap}}
<li role="menuitem">{{$ap}}</li>
<li role="menuitem">{{$ap nofilter}}</li>
{{/foreach}}
</ul>
</li>

View file

@ -72,7 +72,7 @@
</div>
<div class="wall-item-bottom">
<div class="wall-item-links"></div>
<div class="wall-item-like" id="wall-item-like-{{$id}}">{{$like}}</div>
<div class="wall-item-dislike" id="wall-item-dislike-{{$id}}">{{$dislike}}</div>
<div class="wall-item-like" id="wall-item-like-{{$id}}">{{$like nofilter}}</div>
<div class="wall-item-dislike" id="wall-item-dislike-{{$id}}">{{$dislike nofilter}}</div>
</div>
</div>

View file

@ -15,7 +15,7 @@
<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}"><img src="{{$photo.src}}" /></a></div>
{{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}">{{$nextlink.1}}</a></div>{{/if}}
<div id="photo-photo-end"></div>
<div id="photo-caption">{{$desc}}</div>
<div id="photo-caption">{{$desc nofilter}}</div>
{{if $tags}}
<div id="in-this-photo-text">{{$tags.0}}</div>
<div id="in-this-photo">{{$tags.1}}</div>
@ -36,5 +36,5 @@
{{$comments}}
</div>
{{$paginate}}
{{$paginate nofilter}}

View file

@ -63,7 +63,7 @@
{{if $profile.homepage}}
<dl id="aprofile-homepage" class="aprofile">
<dt>{{$profile.homepage.0}}</dt>
<dd>{{$profile.homepage.1}}</dd>
<dd>{{$profile.homepage.1 nofilter}}</dd>
</dl>
{{/if}}

View file

@ -23,7 +23,7 @@
</div>
<div id="profile-edit-links-end"></div>
{{$default}}
{{$default nofilter}}
<div id="profile-edit-wrapper" >
@ -83,7 +83,7 @@
<div id="profile-edit-gender-wrapper" >
<label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
{{$gender}}
{{$gender nofilter}}
</div>
<div id="profile-edit-gender-end"></div>
@ -107,11 +107,11 @@
<div id="profile-edit-homepage-end"></div>
<div id="profile-edit-dob-wrapper" >
{{$dob}}
{{$dob nofilter}}
</div>
<div id="profile-edit-dob-end"></div>
{{$hide_friends}}
{{$hide_friends nofilter}}
<div id="about-jot-wrapper">
<div id="about-jot-desc">{{$about.1}}</div>
@ -200,7 +200,7 @@
<div id="profile-edit-sexual-wrapper" >
<label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
{{$sexual}}
{{$sexual nofilter}}
</div>
<div id="profile-edit-sexual-end"></div>
@ -242,8 +242,8 @@
<div class="js-section toggle-section-content hidden">
<div id="profile-edit-marital-wrapper" >
<label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
{{$marital}}
<label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital nofilter}} </label>
{{$marital nofilter}}
</div>
<label id="profile-edit-with-label" for="profile-edit-with" > {{$with.1}} </label>
<input type="text" size="32" name="with" id="profile-edit-with" title="{{$with.3}}" value="{{$with.2}}" />
@ -339,12 +339,12 @@
{{if $personal_account}}
<div id="profile-edit-gender-wrapper" >
<label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
{{$gender}}
{{$gender nofilter}}
</div>
<div id="profile-edit-gender-end"></div>
<div id="profile-edit-dob-wrapper" >
{{$dob}}
{{$dob nofilter}}
</div>
<div id="profile-edit-dob-end"></div>
{{/if}}
@ -362,7 +362,7 @@
</div>
<div id="profile-edit-homepage-end"></div>
{{$hide_friends}}
{{$hide_friends nofilter}}
<div id="profile-edit-address-wrapper" >
<label id="profile-edit-address-label" for="profile-edit-address" >{{$address.1}} </label>

View file

@ -24,7 +24,7 @@
{{/if}}
{{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
{{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
{{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name nofilter}}</dd></dl>{{/if}}
{{if $location}}
<dl class="location"><dt class="location-label">{{$location}}</dt>
<dd class="adr h-adr">
@ -58,7 +58,7 @@
{{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url"><a href="{{$profile.homepage}}" class="u-url" rel="me" target="_blank">{{$profile.homepage}}</a></dd></dl>{{/if}}
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network">{{$profile.about}}</dd></dl>{{/if}}
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network">{{$profile.about nofilter}}</dd></dl>{{/if}}
{{include file="diaspora_vcard.tpl"}}
@ -81,4 +81,4 @@
</div>
</div>
{{$contact_block}}
{{$contact_block nofilter}}

View file

@ -30,7 +30,7 @@
</div>
<div class="wall-item-content">
{{if $item.title}}<h2><a href="{{$item.plink.href}}">{{$item.title}}</a></h2>{{/if}}
<div class="wall-item-body">{{$item.body}}</div>
<div class="wall-item-body">{{$item.body nofilter}}</div>
</div>
</div>
<div class="wall-item-bottom">
@ -87,7 +87,7 @@
</div>
<div class="wall-item-bottom">
<div class="wall-item-links"></div>
<div class="wall-item-like" id="wall-item-like-{{$item.id}}">{{$item.like}}</div>
<div class="wall-item-dislike" id="wall-item-dislike-{{$item.id}}">{{$item.dislike}}</div>
<div class="wall-item-like" id="wall-item-like-{{$item.id}}">{{$item.like nofilter}}</div>
<div class="wall-item-dislike" id="wall-item-dislike-{{$item.id}}">{{$item.dislike nofilter}}</div>
</div>
</div>

View file

@ -1,4 +1,4 @@
{{$live_update}}
{{$live_update nofilter}}
{{foreach $threads as $thread}}
<hr class="sr-only" />

View file

@ -37,7 +37,7 @@
<div class="wall-item-location">{{$item.location}}</div>
</div>
<div class="wall-item-content">
{{$item.ago}} {{$item.body}}
{{$item.ago}} {{$item.body nofilter}}
</div>
<div class="wall-item-tools">
{{if $item.drop.pagedrop}}
@ -59,9 +59,9 @@
{{* top thread comment box *}}
{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
<div class="wall-item-comment-wrapper" >{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" >{{$item.comment nofilter}}</div>
{{/if}}{{/if}}{{/if}}
{{if $item.flatten}}
<div class="wall-item-comment-wrapper" >{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" >{{$item.comment nofilter}}</div>
{{/if}}

View file

@ -65,8 +65,8 @@
</div>
<div itemprop="description" class="wall-item-content">
<span class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}">{{$item.body}}</span>
{{if $item.title}}<h2><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name">{{$item.title}}</a></h2>{{/if}}
<span class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}">{{$item.body nofilter}}</span>
</div>
</div>
<div class="wall-item-bottom">
@ -170,7 +170,7 @@
<div class="wall-item-links">
</div>
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">
{{$item.comment}}
{{$item.comment nofilter}}
</div>
</div>
{{/if}}{{/if}}
@ -195,18 +195,18 @@
{{if $item.total_comments_num}}
{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment nofilter}}</div>
{{/if}}{{/if}}{{/if}}
{{if $item.flatten}}
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment nofilter}}</div>
{{/if}}
{{else}}
{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment nofilter}}</div>
{{/if}}{{/if}}{{/if}}
{{if $item.flatten}}
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment}}</div>
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment nofilter}}</div>
{{/if}}
{{/if}}