How to format text in html?

Jessica28
Tera Guru

Hello,

I have a GlidModal popup message, which displays the following message. How to leave a blank space between the text and the URL:

 

Jessica28_0-1713484443523.png

 

Here is the code I'm currently using.  Thank you

 

var gm = new GlideModal("glide_warn", true, 600);
    gm.setTitle("Test title");
    var bodyText = 'Here is the URL to view <a href="https://www.testEform.com" target="_blank">The eForm</a>';
    gm.setPreference("title", bodyText);
    gm.setPreference("onPromptComplete", function() {
        //alert("You clicked on 'Ok'")
}
1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @Jessica28

 

Try this instead

var bodyText = 'Here is the URL to view &#160;<a href="https://www.testEform.com" target="_blank">The eForm</a>';

 

Cheers

View solution in original post

3 REPLIES 3

James Chun
Kilo Patron

Hi @Jessica28

 

Try this instead

var bodyText = 'Here is the URL to view &#160;<a href="https://www.testEform.com" target="_blank">The eForm</a>';

 

Cheers

Thank you so much @James Chun 

I have spent many hours trying to get it to work, but still I couldn't.  That is because I am lack of programming skill.  Please let me know what is this means "&#160; and what programming language is this.  Thank you

 

No worries, it's just a 'non-breaking space' for HTML characters - https://www.w3schools.com/html/html_entities.asp