Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 如何显示A&;amp;乙至甲;axlsx中的B?_Ruby_Ruby On Rails 4_Xlsx_Axlsx - Fatal编程技术网

Ruby 如何显示A&;amp;乙至甲;axlsx中的B?

Ruby 如何显示A&;amp;乙至甲;axlsx中的B?,ruby,ruby-on-rails-4,xlsx,axlsx,Ruby,Ruby On Rails 4,Xlsx,Axlsx,我尝试在使用axlsx gem的rails应用程序中导出excel,但无法显示&在excel中编码到& 我怎么做?欢迎您的回答。谢谢 我已经解决了,我使用:striped_content=ActionController::Base.helpers.strip_标记(内容)和HTMLEntities.new.decode(striped_内容)如果您已经解决了问题,您可以回答问题并将其标记为正确答案。

我尝试在使用axlsx gem的rails应用程序中导出excel,但无法显示
&在excel中编码到
&


我怎么做?欢迎您的回答。谢谢

我已经解决了,我使用:striped_content=ActionController::Base.helpers.strip_标记(内容)和HTMLEntities.new.decode(striped_内容)如果您已经解决了问题,您可以回答问题并将其标记为正确答案。