Skip to content

PHP class that replaces quotemarks according to language practices without altering HTML markup

License

Notifications You must be signed in to change notification settings

remipou/quotemarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

quotemarks

Replace quotes according to language practices but leaves HTML markup untouched

###Example

$text = "some text with \"double quotes\", 'single quotes' and tags <a href='github.com'>github</a>\"more quotes\" and more tags <p class=\"whatever\">";
$newText = new quotes($text);
XX: some text with "double quotes", 'single quotes' and tags <a href='github.com'>github</a>"more quotes" and more tags <p class="whatever">
sv: some text with ”double quotes”, ’single quotes’ and tags <a href='github.com'>github</a>”more quotes” and more tags <p class="whatever">
fr: some text with «double quotes», ’single quotes’ and tags <a href='github.com'>github</a>«more quotes» and more tags <p class="whatever">
en: some text with “double quotes”, ’single quotes’ and tags <a href='github.com'>github</a>“more quotes” and more tags <p class="whatever">
de: some text with „double quotes“, ’single quotes’ and tags <a href='github.com'>github</a>„more quotes“ and more tags <p class="whatever">
en: some text with “double quotes”, ’single quotes’ and tags <a href='github.com'>github</a>“more quotes” and more tags <p class="whatever">
es: some text with «double quotes», ’single quotes’ and tags <a href='github.com'>github</a>«more quotes» and more tags <p class="whatever">

About

PHP class that replaces quotemarks according to language practices without altering HTML markup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages