I need to add some random html content with text before and after my input field.
I know that I can use the description decorator and set the escape option to false - this way I can just add an arbitrary html chunk as a decorator.
But this is only an accounting for 1 html chunk - I need the second after the input field. If I just crossed off the decorator’s description after the input field, this will display the same chucnk description.
1) Is there a way to use the description decorator several times with different content?
2) In the label decoder - is there a way to use the span tag instead of the label label?
3) Is it possible to inject random html into the HtmlTag decorator?
thank!
update:
I solved my problem by creating a simple custom decorator that allows me to enter random html anywhere. However, if someone knows quick and easy answers - plz post.
source
share