Is there a way to set standard alert boxes to wrap long text?

I have written a function to wrap long text by inserting '</br>' tags but the wrapped text appears under the Icon and so looks extremely untidy and unprofessional.