addes support for text to optionally define tag default to <p>