<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kota</title>
    <description>The latest articles on DEV Community by Kota (@nkkota).</description>
    <link>https://dev.to/nkkota</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F285965%2F98cc0128-fd26-480e-b8ab-41d357772f1b.png</url>
      <title>DEV Community: Kota</title>
      <link>https://dev.to/nkkota</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nkkota"/>
    <language>en</language>
    <item>
      <title>How to replace your \n to &lt;br&gt;</title>
      <dc:creator>Kota</dc:creator>
      <pubDate>Thu, 05 Dec 2019 11:50:04 +0000</pubDate>
      <link>https://dev.to/nkkota/how-to-replace-your-n-to-br-51gg</link>
      <guid>https://dev.to/nkkota/how-to-replace-your-n-to-br-51gg</guid>
      <description>&lt;p&gt;Have you ever try to replace &lt;strong&gt;'\n' to '&amp;lt;br&amp;gt;'&lt;/strong&gt; by php&lt;/p&gt;

&lt;p&gt;You should write this str_replace("\n", "&amp;lt;br&amp;gt;", $string);&lt;/p&gt;

&lt;p&gt;If you write this str_replace('\n', "&amp;lt;br&amp;gt;", $string);&lt;/p&gt;

&lt;p&gt;That will go bad because "\n" is actually 0x0A but '\n' is just 0x5C6E! &lt;/p&gt;

</description>
      <category>html</category>
      <category>php</category>
    </item>
  </channel>
</rss>
