I want to use HTML tags like <ul></ul> <li> <br> <b></b> in the templates of the bot.
How can I use this tags?
If I add this tags I got an XML error while loading the AIML files in the database.
If I use the <br> instead of <br> I'm able to load the tags in the database without an error,
but the answer (template) is never been shown (the bot sends nothing if I ask him a question which belongs to the template).
Thank you in advance for your information.
I found the solution by myself:
If you want to use the <br> tag, you simply have to add something like:
in the customtags.php
And in the aiml file replace the <br> tag with <br></br>
i know <br> was used just for an eg. above but wouldn't <br /> work as it is XML?
Just for users looking for same answers, here is how it worked for me:
In AIML files I use:
<li></li> (only in <template></template> tags, never in <random></random>)
<ul></ul> (only in <template></template> tags, never in <random></random>)
<li></li> (only in <random></random>)
Soemtimes, when you need to use bot properties in links or image tags, you need to also use the entities for link open tags (or both open and close).
<a href="somelink.htm"> link text </a>
<a href="somelink.php<bot name="website"/>"> link text </a>
<img src="<bot name="website"/>somelink.jpg"/>
Sometimes, I had to also use the htmlentite for & (ampersand) like:
&lt;img src="<bot name="website"/>somelink.jpg"/&gt;
The loading script will tell you when a tag is wrong (XML Error > tag needed on line nnn). Then you need to play and choose the best tag format.
Hope this helps!