Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 579 Bytes

unescape_adapter.md

File metadata and controls

26 lines (16 loc) · 579 Bytes

UnescapeAdapter

The UnescapeAdapter strips backslashes off the input string.

Ex. The string 'The string contains an unescaped \\\\ backslash".' will be transformed into 'The string contains an unescaped \\ backslash".'.

Usage

<?php

use Presta\BehatEvaluator\Adapter\UnescapeAdapter;

$evaluate = new UnescapeAdapter();
$value = $evaluate('It\'s time!');

// $value is equal to "It's time!"

You may return to the README or read other adapters guides.