Adds function markup($str) which returns the string in a render array as markup