Pretty HTML Table - Styling TD

More
2 years 1 week ago #24215 by prashant
 
HI ,
I am trying to create a HTML table using Pretty Table Example , so encoding XML elements , I am running into trouble when instead of plan 

ENCODING XML element to be td

I want to encode them with a slight flare such as 
<td style="text-align: center;">MY TEXT</td>

SO I try to Encode XML element with  <td style="text-align: center;"
I get the output of
<td style="text-align: center;">MY TEXT</td style="text-align: center;">
It's of course wrong

 

The hacky solution is Prefix and Suffix , which works 



Question is since I don't understand anything about XML encoding , is there any other function which can be used to facilitate or suffix/prefix is the solution ? 
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
2 years 1 week ago #24216 by Peter.Jonson
Using Prefix and Suffix is a right solution in your case

Peter Jonson
ETL Developer
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save