<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishitatsu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishitatsu/</author_url>
  <blog_title>私の外部記憶装置</blog_title>
  <blog_url>https://gaibukiokusouchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>【目次】 概要 書き方 書き方例 概要 「改行コード」を「エスケープされないHTMLタグ」に置き換えて表示する エスケープの書き方 &lt; 【Rails】クロスサイトスクリプティング（XSS）とその対策 書き方 safe_join：「第1引数（配列）の要素」を「第2引数（区切り文字列）」で繋いだ文字列を返す。この時、全てHTMLエスケープされる（ただし、html_safe が適用されたものはエスケープされない） safe_join &lt; ActionView::Helpers::OutputSafetyHelper tag.br：エスケープされない&lt;br&gt;を返す（html_safe が適用されたのと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgaibukiokusouchi.hatenablog.com%2Fentry%2F2025%2F08%2F22%2F142944&quot; title=&quot;【Rails】「改行」をエスケープせずに表示する - 私の外部記憶装置&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-22 14:29:44</published>
  <title>【Rails】「改行」をエスケープせずに表示する</title>
  <type>rich</type>
  <url>https://gaibukiokusouchi.hatenablog.com/entry/2025/08/22/142944</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
