Skip to content

Commit 0ed55dd

Browse files
committed
SDK-1039: Escape anchors in example project
1 parent 1acb282 commit 0ed55dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/profile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@
102102
<div class="yoti-attribute-anchors-head -subtype">Sub type</div>
103103

104104
<?php foreach($attributeObj->getAnchors() as $anchor) : ?>
105-
<div class="yoti-attribute-anchors -s-v"><?php echo $anchor->getType() ?></div>
106-
<div class="yoti-attribute-anchors -value"><?php echo $anchor->getValue() ?></div>
107-
<div class="yoti-attribute-anchors -subtype"><?php echo $anchor->getSubType() ?></div>
105+
<div class="yoti-attribute-anchors -s-v"><?php echo htmlspecialchars($anchor->getType()); ?></div>
106+
<div class="yoti-attribute-anchors -value"><?php echo htmlspecialchars($anchor->getValue()); ?></div>
107+
<div class="yoti-attribute-anchors -subtype"><?php echo htmlspecialchars($anchor->getSubType()); ?></div>
108108
<?php endforeach; ?>
109109

110110
</div>

0 commit comments

Comments
 (0)