Adds option to encapsulate output in HTML tags or not