Changeset 3333801
- Timestamp:
- 07/24/2025 04:17:31 PM (8 months ago)
- Location:
- nota-ai-tools
- Files:
-
- 6 edited
- 1 copied
-
tags/0.17.3 (copied) (copied from nota-ai-tools/trunk)
-
tags/0.17.3/includes/class-nota-wp-rest.php (modified) (1 diff)
-
tags/0.17.3/nota-wordpress-plugin.php (modified) (2 diffs)
-
tags/0.17.3/readme.txt (modified) (1 diff)
-
trunk/includes/class-nota-wp-rest.php (modified) (1 diff)
-
trunk/nota-wordpress-plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nota-ai-tools/tags/0.17.3/includes/class-nota-wp-rest.php
r3318413 r3333801 40 40 */ 41 41 private function trim_html( $html ) { 42 // Replace <br> tags with a space before stripping tags to prevent words from sticking together. 43 $html = preg_replace( '/<br\s*\/?>/i', "\n", $html ); 44 45 // strip HTML tags from text. 46 $text = wp_strip_all_tags( $html ); 47 $text = substr( $text, 0, 12000 ); 48 49 // Decode HTML entities to their corresponding characters. 50 $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' ); 51 42 // Replace <br> tags with a space before stripping tags to prevent concatenation. 43 $text = preg_replace( '/<br\s*\/?>/i', "\n", $html ); 44 // Remove shortcodes. 45 $text = strip_shortcodes( $html ); 46 // Remove HTML tags. 47 $text = wp_strip_all_tags( $text ); 48 // Decode HTML entities. 49 $text = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5, 'UTF-8' ); 52 50 // Normalize line breaks. 53 51 $text = preg_replace( '/\n+/', "\n", $text ); 54 52 // Trim to 60000 characters to meet our length limit. 53 $text = substr( $text, 0, 60000 ); 54 55 55 return $text; 56 56 } -
nota-ai-tools/tags/0.17.3/nota-wordpress-plugin.php
r3318413 r3333801 3 3 * Plugin Name: Nota Tools 4 4 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more. 5 * Version: 0.17. 25 * Version: 0.17.3 6 6 * Author: Nota 7 7 * Author URI: https://heynota.com … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define( 'NOTA_PLUGIN_VERSION', '0.17. 2' );16 define( 'NOTA_PLUGIN_VERSION', '0.17.3' ); 17 17 18 18 if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) { -
nota-ai-tools/tags/0.17.3/readme.txt
r3318413 r3333801 4 4 License URI: http://www.gnu.org/licenses/gpl.html 5 5 Requires PHP: 7.2.5 6 Stable tag: 0.17. 26 Stable tag: 0.17.3 7 7 Tested up to: 6.7.2 8 8 -
nota-ai-tools/trunk/includes/class-nota-wp-rest.php
r3318413 r3333801 40 40 */ 41 41 private function trim_html( $html ) { 42 // Replace <br> tags with a space before stripping tags to prevent words from sticking together. 43 $html = preg_replace( '/<br\s*\/?>/i', "\n", $html ); 44 45 // strip HTML tags from text. 46 $text = wp_strip_all_tags( $html ); 47 $text = substr( $text, 0, 12000 ); 48 49 // Decode HTML entities to their corresponding characters. 50 $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' ); 51 42 // Replace <br> tags with a space before stripping tags to prevent concatenation. 43 $text = preg_replace( '/<br\s*\/?>/i', "\n", $html ); 44 // Remove shortcodes. 45 $text = strip_shortcodes( $html ); 46 // Remove HTML tags. 47 $text = wp_strip_all_tags( $text ); 48 // Decode HTML entities. 49 $text = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5, 'UTF-8' ); 52 50 // Normalize line breaks. 53 51 $text = preg_replace( '/\n+/', "\n", $text ); 54 52 // Trim to 60000 characters to meet our length limit. 53 $text = substr( $text, 0, 60000 ); 54 55 55 return $text; 56 56 } -
nota-ai-tools/trunk/nota-wordpress-plugin.php
r3318413 r3333801 3 3 * Plugin Name: Nota Tools 4 4 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more. 5 * Version: 0.17. 25 * Version: 0.17.3 6 6 * Author: Nota 7 7 * Author URI: https://heynota.com … … 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 define( 'NOTA_PLUGIN_VERSION', '0.17. 2' );16 define( 'NOTA_PLUGIN_VERSION', '0.17.3' ); 17 17 18 18 if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) { -
nota-ai-tools/trunk/readme.txt
r3318413 r3333801 4 4 License URI: http://www.gnu.org/licenses/gpl.html 5 5 Requires PHP: 7.2.5 6 Stable tag: 0.17. 26 Stable tag: 0.17.3 7 7 Tested up to: 6.7.2 8 8
Note: See TracChangeset
for help on using the changeset viewer.