source/Core/SeoEncoder.php
public function encodeString($sString, $blReplaceChars = true, $iLang = false)
    {
        // decoding entities
        $sString = getStr()->html_entity_decode($sString);

        if ($blReplaceChars) {
            if ($iLang === false || !is_numeric($iLang)) {
                $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getEditLanguage();
            }

            if ($aReplaceChars = \OxidEsales\Eshop\Core\Registry::getLang()->getSeoReplaceChars($iLang)) {
                $sString = str_replace(array_keys($aReplaceChars), array_values($aReplaceChars), $sString);
            }
        }

        return str_replace(['&amp;', '&quot;', '&#039;', '&lt;', '&gt;'], '', $sString);
    }
public function encodeString($sString, $blReplaceChars = true, $iLang = false)
    {
        // decoding entities
        $sString = getStr()->html_entity_decode($sString);

        if ($blReplaceChars) {
            if ($iLang === false || !is_numeric($iLang)) {
                $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getEditLanguage();
            }

            if ($aReplaceChars = \OxidEsales\Eshop\Core\Registry::getLang()->getSeoReplaceChars($iLang)) {
                $sString = str_replace(array_keys($aReplaceChars), array_values($aReplaceChars), $sString);
            }
        }

        return str_replace(['&amp;', '&quot;', '&#039;', '&lt;', '&gt;'], '', $sString);
    }
public function encodeString ( $ sString , $ blReplaceChars = true , $ iLang = false ) { // decoding entities $ sString = getStr ( ) -> html_entity_decode ( $ sString ) ; if ( $ blReplaceChars ) { if ( $ iLang === false || ! is_numeric ( $ iLang ) ) { $ iLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getEditLanguage ( ) ; } if ( $ aReplaceChars = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getSeoReplaceChars ( $ iLang ) ) { $ sString = str_replace ( array_keys ( $ aReplaceChars ) , array_values ( $ aReplaceChars ) , $ sString ) ; } } return str_replace ( [ '&amp;' , '&quot;' , '&#039;' , '&lt;' , '&gt;' ] , '' , $ sString ) ; }
Replaces special chars in text

@param string $sString        string to encode
@param bool   $blReplaceChars is true, replaces user defined (\OxidEsales\Eshop\Core\Language::getSeoReplaceChars) characters into alternative
@param int    $iLang          language, for which to encode the string

@return string
Replaces special chars in text