# sync-basalam/1.10.9/includes/Utilities/TicketExtraInfoFormatter.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.10.9. 32 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.9/code/includes/Utilities/TicketExtraInfoFormatter.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.9/raw/includes/Utilities/TicketExtraInfoFormatter.php
- Modified: 2026-08-16T11:47:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.10.9/code/includes/Utilities/TicketExtraInfoFormatter.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Utilities;

defined('ABSPATH') || exit;

class TicketExtraInfoFormatter
{
    public static function sanitizeContent($value): string
    {
        $value = wp_check_invalid_utf8(wp_unslash((string) $value));

        if (strpos($value, '<') !== false) {
            $value = wp_pre_kses_less_than($value);
            $value = wp_strip_all_tags($value, false);
            $value = str_replace("<\n", "&lt;\n", $value);
        }

        $value = str_replace(["\r\n", "\r"], "\n", $value);
        $value = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/', '', $value);

        return trim($value);
    }

    public static function appendFromRequest(string $content, array $request): string
    {
        // Kept as a compatibility shim for third-party callers. Access data is
        // intentionally ignored and must be sent with TicketAccessData instead.
        return trim($content);
    }
}

```
