title: STRING_ESCAPE( 'SOME TEXT' , 'json') alternative for SQL Server 2012
body: <p>We have multiple version of SQL Server (2016, 2012), Unfortunately, <code>STRING_ESCAPE</code> is only working in 2016 as it was introduced in that version. I am getting following error while I execute the same query in SQL Server 2012.</p>
  
  <pre><code>SELECT STRING_ESCAPE(description, 'json') 
  FROM SomeTable
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Msg 195, Level 15, State 10, Line 1<br>
    'STRING_ESCAPE' is not a recognized built-in function name.</p>
  </blockquote>
  
  <p>Is there any alternative to <code>STRING_ESCAPE</code> for SQL Server 2012?</p>