sms ulr is already supported by google/closure-library and and validations are added to check if the body passed is safe or not you can refer https://github.com/google/closure-library/blob/bb7ea653194b590711614fd79b0a88a38a600740/closure/goog/html/safeurl.js#L440-L454 for more details Fixes #31462 PR Close #31463