Altering HTML Text
Ray Horsley
Ray at LinkIt.Com
Tue Feb 23 16:31:33 EST 2010
David, André,
Not a bad thought David, but I don't think I see a CSS in this URL.
André, thanks for asking. Here's the URL:
http://www.linkit.com/EItemBank/ETS Formative Assessment Item Bank/ELA
NO 3rd Party Items/Grade 4 QTI/ELA G4 P1/passages/1000323.htm
If I use the RevBrowser library handlers to display it in an image I
can then get the htmlText of the 'instance' using the RevBrowserGet()
function. That's where I get strange looking characters. If I then
set the htmlText of the same image using RevBrowserSet, passing the
return I got from RevBrowserGet(), the display turns weird. I'll
include, below, a little bit of the weird return I get from the
RevBrowserGet() function after displaying the above URL.
Thanks,
Ray
Ôªø<HTML><BODY><HEAD></HEAD><div style="font-size:14pt; font-family:
Times; font-weight: bold;text-align:center;"><span style="font-size:
14pt; font-family: Times; font-weight: bold;text-
align:center;">Arrowhead Farm</span></div><div style="text-
align:center;margin-top:0pt;margin-bottom: 1em;"><img src="../images/
5067210.Jpeg" width="70" height="191" format="Jpeg" /></div><table
style="font-size:12pt; font-family: Times; font-weight:
normal;"><tr><td style="font-size:12pt; font-family: Times; font-
weight: normal;vertical-align: top; width: .25in;">1</td><td><div
style="text-indent: 0.25in;margin-top:0em;margin-bottom:1em;">ÄúHey,
Max, time to wake up,Äù Mrs. Jensen said. ÄúItÄôs Saturday, our day
to visit Grandpa.Äù</div></td></tr></table><table style="font-size:
12pt; font-family: Times; font-weight: normal;"><tr><td style="font-
size:12pt; font-family: Times; font-weight: normal;vertical-align:
top; width: .25in;">2</td><td><div style="text-indent: 0.25in;margin-
top:0em;margin-bottom:1em;">
On Feb 23, 2010, at 6:48 AM, David Coker wrote:
>> The problem is, even if I don't alter it and simply put it back as
>> I found it I don't get the same display.
>
> Could it be that the differences in the display have to do with
> formatting based on a CSS file for the original page?
> If so, maybe you could check the original source for the reference to
> the CSS file, parse out that info and grab the CSS file also?
>
> I'm probably way off base as usual, but it's a thought at least...
>
> David C.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list