Join us in Outworldz at or follow us:

[Table of Contents]

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Viewer 2 Display_text_with_HTML_markup  


The text of the data URI will be %-hex-escaped automatically for you, so there's no need to use llEscapeURL(). All you need in the data URI is the prefix data:text/html, plus your HTML.

Category: Viewer 2
By : Becky Pippen
Created: 2010-09-02 Edited: 2010-09-02
Worlds: Second Life

the Zip file

Download all files for Display_text_with_HTML_markup
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Display_text_with_HTML_markup_1.lsl
1 default
2 {
4 {
5 integer face = 4;
6 string message = "<i>Hello</i><h2>World!</h2>";
7 llSetPrimMediaParams(face,
8 [PRIM_MEDIA_CURRENT_URL, "data:text/html," + message]);
9 }
10 }

Back to the Best Free Tools in Second Life and OpenSim.