Updated render partial to better handle raw tags