So after much experimentation in the module xml I have:
Code: Select all
<field name='foo' type='text' size='40' default='<div style="position:relative;' label='foo Label' description='Foo description' />
So the default value for foo should be
Code: Select all
<div style="position:relative;
However when the module is saved the < (or <) is stripped off and a spurious extra 'matching' double quote is added at the end of the string.
So what you get back is
Code: Select all
div style="position:relative;"
Code: Select all
<div style="position:relative;
Help please: What syntax will allow parameters containing html tags and unmatched double quotes to be correctly saved?
Or will Joomla simply not allow html in parameters? And where is the spurious extra double quote at the end coming from - I don't want it.
Thans
RogerCO