From 34eb9c2dd14d92b2a3122e98f438ec8a39d959dc Mon Sep 17 00:00:00 2001 From: Francois Beaufort Date: Mon, 13 Mar 2017 14:52:18 +0100 Subject: [PATCH] Fix display issues with special HTML characters --- physical-web/url-validator/index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/physical-web/url-validator/index.html b/physical-web/url-validator/index.html index e2a9b93..4eb3640 100644 --- a/physical-web/url-validator/index.html +++ b/physical-web/url-validator/index.html @@ -69,11 +69,14 @@ log('Snap!', text, 'error'); return enableButton(); } - var text = 'URL' + data.results[0].resolvedUrl + '
' + - 'Title' + data.results[0].pageInfo.title + '
' + - 'Description' + data.results[0].pageInfo.description + '
' + + var text = 'URL
' + + 'Title
' + + 'Description
' + 'Icon'; log('Success', text, 'success'); + $('#url').textContent = data.results[0].resolvedUrl; + $('#title').textContent = data.results[0].pageInfo.title; + $('#description').textContent = data.results[0].pageInfo.description; enableButton(); }) .catch(error => {