HTML spans with links

J. Landman Gay jacque at hyperactivesw.com
Thu Feb 6 15:15:59 EST 2020


If I set the htmlText of a field to HTML that contains a span, and if that span also contains 
an anchor or href link, LC separates the span into multiple ones.

For example, a field's htmlText set to this:

<p> <span metadata="metadata1">This is some text that contains the metadata.<a 
href="#fn">linkOne</a> And here is some more text. <a href="#en"><i>linkTwo</i></a></span></p>

becomes this when retrieved:

<p> <span metadata="metadata1">This is some text that contains the metadata.<a 
href="#fn">linkOne</a></span><span metadata="metadata1"> And here is some more text. <a 
href="#en"><i>linkTwo</i></a></span></p>

How come it does that? Do links interfere with spans?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list