fix: escape alt attr

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-05-02 15:32:49 +01:00
parent 40c2ba12f5
commit 8547856b76

View File

@ -23,7 +23,7 @@ const comicPage = ({ alt, title, transcript, num, img }) => {
<a class="${btnClass}" href="../${pad(num + 1, 4)}/index.html">Next <span class="gray"></span></a>
</nav>
<img src="./${basename(img)}" title="${alt}">
<img src="./${basename(img)}" title="${alt.replace('"', '&quot;')}">
<p class="dn">${escapeHtml(transcript)}</p>
${credits}
</body>