lp__escape_quote( $value )

Escapes single quotes in a string.

Plugin

Namespace

Launchpad

Parameters

string

$value

The string to escape single quotes from.

Return

string

The resulting string with escaped single quotes.

Source

File: \includes\lp-utility-functions.php

    function lp__escape_quote( $value ){
        return is_string( $value ) ? str_replace("'", "\\'", $value) : $value;
    }

Related

Use to convert the first character of each word in a string to uppercase.

Use to format a date string according to the specified format and timezone.

Use to parse an array serialized as a string and returns it as a concatenated string.

Use to convert a string to a valid phone number.