On Jul 28, 10:27 pm, "Chris Nelson" <[email protected]> wrote: > On 2011-07-27 at 23:39:21, Helend wrote: > > > Hi All, > > > There is a string like this: > > > string = 'The definition about CO<sub>2</sub> can be found > CarbonDioxide > > ' > > > I expect format this string firstly as HTML to show CO<sub>2</sub> > > correctly, then format it as WIKI to create a link to WIKI page > > CarbonDioxide. > > > Currently, I use function "format_to_oneliner" to format as WIKI. Is > > there a function to format it as HTML? > > There are ways to add HTML to wiki pages (I don't use them, but I know > they exist) but wouldn't "CO,,2,," work in this case?
Thanks, this string "CO<sub>2</sub>" exists in a database, and can not be changed. There are some more complicated HTML codes I would like to show them correctly. Are there some methods to show them? -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
