tag:github.com,2008:https://github.com/DivanDesign/EvolutionCMS.snippets.ddStringTools/releases Release notes from EvolutionCMS.snippets.ddStringTools 2025-04-06T15:17:44Z tag:github.com,2008:Repository/77672084/v2.3 2025-04-06T15:18:49Z Version 2.3 <ul> <li>+ Tools → Numberer: The new tool for converting and formatting numbers (see README → Examples).</li> <li>* README → Examples: HJSON is used for all examples.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v2.2 2024-11-04T23:15:58Z Version 2.2 <ul> <li>+ Tools → Preg replacer → Parameters → <code>tools-&gt;pregReplacer-&gt;pattern</code>: By default <code>/</code> + <code>/u</code> is used, but now you can use your own modifiers.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v2.1 2023-08-22T18:20:35Z Version 2.1 <ul> <li>+ Parameters → <code>tools-&gt;typographer-&gt;optAlign_useClasses</code>: The new parameter. Allows to use CSS classes instead of inline styles for optical alignment (<code>&lt;span class="oa_comma_b"&gt;</code> instead of <code>&lt;span style="margin-right:-0.2em;"&gt;</code>).</li> <li>* <code>\ddTools::getTpl</code> is used instead of <code>$modx-&gt;getTpl</code> (means a bit less bugs).</li> <li>+ Composer.json → <code>autoload</code>.</li> <li>* Attention! (MODX)EvolutionCMS.libraries.ddTools &gt;= 0.60 is required.</li> <li>* Attention! (MODX)EvolutionCMS.snippets.ddTypograph &gt;= 2.6 is required (if the <code>tools-&gt;typographer</code> parameter is used).</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v2.0 2021-04-14T23:30:05Z Version 2.0 <ul> <li>* Attention! Backward compatibility is broken.</li> <li>* Attention! PHP &gt;= 5.6 is required.</li> <li>* Attention! (MODX)EvolutionCMS.libraries.ddTools &gt;= 0.48.2 is required.</li> <li>* Attention! (MODX)EvolutionCMS.snippets.ddTypograph &gt;= 2.5 is required.</li> <li>- The following outdated parameters is not supported anymore (use the <code>tools</code> parameter instead): <ul> <li>- <code>specialCharsToHTMLEntities</code>.</li> <li>- <code>removePlaceholders</code>.</li> <li>- <code>escapeForJS</code>.</li> <li>- <code>URLEncode</code>.</li> <li>- <code>toUppercase</code>.</li> <li>- <code>toLowercase</code>.</li> <li>- <code>parseMarkdown</code>.</li> <li>- <code>typography</code>.</li> <li>- <code>typography_params</code>.</li> <li>- <code>stripTags</code>.</li> <li>- <code>stripTags_allowed</code>.</li> </ul> </li> <li>+ Parameters → <code>tools</code>: Can also be set as HJSON.</li> <li>+ You can just call <code>\DDTools\Snippet::runSnippet</code> to run the snippet without DB and eval (see README → Examples).</li> <li>+ <code>\ddStringTools\Snippet</code>: The new class. All snippet code was moved here.</li> <li>+ <code>\ddStringTools\Tool\Tplparser\Tool::modify_exec</code>: Less fragile code, now placeholders can be either an array or an object.</li> <li>* <code>\ddStringTools\Tool\Typographer\Tool::modify_exec</code>: <ul> <li>* <code>\DDTools\Snippet::runSnippet</code> is used instead of <code>$modx-&gt;runSnippet</code> for running the <code>ddTypograph</code> snippet without DB and eval.</li> <li>* Less fragile code, <code>\DDTools\ObjectTools::extend</code> is used instead of <code>array_merge</code>.</li> </ul> </li> <li>* README: <ul> <li>+ Links → Packagist.</li> <li>* Documentation: <ul> <li>+ Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.</li> <li>* Parameters description: Text improvements.</li> </ul> </li> </ul> </li> <li>+ README_ru.</li> <li>+ Composer.json → <code>support</code>.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.7 2020-06-22T14:12:20Z Version 1.7 <ul> <li>+ Added the ability to perform a regular expression search and replace (see README): <ul> <li>+ <code>ddStringTools\Tool\Pregreplacer\Tool</code>.</li> <li>+ Snippet → Parameters: <ul> <li>+ <code>tools-&gt;pregReplacer</code>: The new parameter.</li> <li>+ <code>tools-&gt;pregReplacer-&gt;pattern</code>: The new parameter.</li> <li>+ <code>tools-&gt;pregReplacer-&gt;replacement</code>: The new parameter.</li> </ul> </li> </ul> </li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.6 2020-06-03T00:06:55Z Version 1.6 <ul> <li>* Attention! (MODX)EvolutionCMS.libraries.ddTools &gt;= 0.38.1 is required.</li> <li>+ Parameters → <code>inputString</code>: Can also be set as a PHP object or array (e. g. for calls through <code>$modx-&gt;runSnippet</code>). In this case, it will be converted to JSON first.</li> <li>* Small refactoring.</li> <li>+ README: <ul> <li>+ Documentation → Examples → Call through <code>$modx-&gt;runSnippet</code>.</li> <li>- Home page.</li> <li>+ Links.</li> </ul> </li> <li>+ CHANGELOG: Style and text improvements.</li> <li>+ CHANGELOG_ru.</li> <li>* Composer.json: <ul> <li>+ <code>homepage</code>.</li> <li>+ <code>authors</code>.</li> <li>* <code>require</code>: <ul> <li>* <code>dd/evolutioncms-libraries-ddtools</code>: Renamed from <code>dd/modxevo-library-ddtools</code>.</li> <li>* <code>dd/evolutioncms-snippets-ddtypograph</code>: Renamed from <code>dd/modxevo-snippet-ddtypograph</code>.</li> </ul> </li> </ul> </li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.5.2 2020-05-07T17:37:34Z Version 1.5.2 <ul> <li>* <code>tools-&gt;charEscaper-&gt;lineBreaks</code>: Line breaks will be replaced to <code>'\r\n'</code> instead of space.</li> <li>* Small refactoring.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.5.1 2020-05-07T13:38:19Z Version 1.5.1 <ul> <li>* Snippet: A tool will not be applied to an empty string.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.5 2020-05-07T08:29:30Z Version 1.5 <ul> <li>* Attention! (MODX)EvolutionCMS.libraries.ddTools &gt;= 0.35 is required.</li> <li>* The new snippet structure (see README): <ul> <li>+ Added the ability to use multiple tools together with the required order.</li> <li>- The following parameters were removed (with backward compatibility): <ul> <li>- <code>toLowercase</code>.</li> <li>- <code>toUppercase</code>.</li> <li>- <code>parseMarkdown</code>.</li> <li>- <code>typography</code>.</li> <li>- <code>typography_params</code>.</li> <li>- <code>stripTags</code>.</li> <li>- <code>stripTags_allowed</code>.</li> <li>- <code>specialCharsToHTMLEntities</code>.</li> <li>- <code>removePlaceholders</code>.</li> <li>- <code>escapeForJS</code>.</li> <li>- <code>URLEncode</code>.</li> </ul> </li> <li>+ The following parameters were added: <ul> <li>+ <code>tools</code>.</li> <li>+ <code>tools-&gt;caseConverter</code>.</li> <li>+ <code>tools-&gt;caseConverter-&gt;toLower</code>.</li> <li>+ <code>tools-&gt;caseConverter-&gt;toUpper</code>.</li> <li>+ <code>tools-&gt;markdownParser</code>.</li> <li>+ <code>tools-&gt;markdownParser-&gt;parseInline</code>.</li> <li>+ <code>tools-&gt;typographer</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;optAlign</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;text_paragraphs</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;text_autoLinks</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;etc_unicodeConvert</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;noTags</code>.</li> <li>+ <code>tools-&gt;typographer-&gt;excludeTags</code>.</li> <li>+ <code>tools-&gt;tagRemover</code>.</li> <li>+ <code>tools-&gt;tagRemover-&gt;allowed</code>.</li> <li>+ <code>tools-&gt;specialCharConverter</code>.</li> <li>+ <code>tools-&gt;charEscaper</code>.</li> <li>+ <code>tools-&gt;urlEncoder</code>.</li> <li>+ <code>tools-&gt;placeholderRemover</code>.</li> </ul> </li> </ul> </li> <li>+ Snippet: The following parameters added (see README): <ul> <li>+ <code>tools-&gt;charEscaper-&gt;backslashes</code>.</li> <li>+ <code>tools-&gt;charEscaper-&gt;lineBreaks</code>.</li> <li>+ <code>tools-&gt;charEscaper-&gt;tabs</code>.</li> <li>+ <code>tools-&gt;charEscaper-&gt;modxPlaceholders</code>.</li> <li>+ <code>tools-&gt;charEscaper-&gt;quotes</code>.</li> <li>+ <code>tools-&gt;tplParser</code>.</li> <li>+ <code>tools-&gt;tplParser-&gt;tpl</code>.</li> <li>+ <code>tools-&gt;tplParser-&gt;placeholders</code>.</li> </ul> </li> <li>* Composer.json: Fixed versions format.</li> </ul> Ronef tag:github.com,2008:Repository/77672084/v1.4 2020-05-07T08:28:24Z Version 1.4 <ul> <li>+ Added the ability to remove placeholders like <code>[+placeholder+]</code>.</li> <li>* Refactoring, the <code>$modx-&gt;getConfig</code> method is used instead of the <code>$modx-&gt;config</code> field.</li> <li>* README: <ul> <li>* Style changes.</li> <li>* Documentation → Parameters description: Small order changes.</li> </ul> </li> <li>+ Composer.json → Require.</li> </ul> Ronef