You could convert the params[:text_page][:ext_es] using CGI.unescapeHTML back into an unescaped string. See this answer for details.
CGI.unescapeHTML