Update shortcode render

I change the code from direct rendering html to html string into
variable and return variable to function.