JFilterOutput::objectHTMLSafe

Makes an object safe to display in forms

Object parameters that are non-string, array, object or start with underscore will be converted