HTML Protection Test

This is a common text that should be translated into the target language. This section contains product introduction, application scenarios, and purchase instructions.

Core product advantages

Please check our Product Details page , this internal link should be mapped to the corresponding translation URL of the target site after synchronization.

The following image is used to download and replace the text image: 中文产品图片说明


/**
 * 这里是代码块,应该完整保护,不应该被翻译。
 */
function zob_test_message() {
    $message = '产品同步成功';
    echo esc_html( $message );
}

This text is behind the code block and should continue to be translated normally.

echo '这是一段单独 code 标签内容,应该被保护,不应该翻译'; /** * script 内容应该被保护。 */ var zobProductTitle = ‘中文产品标题’; console.log(‘这里不应该被翻译’); /* style 内容应该被保护 */ .zob-test-box { content: “中文样式内容不应翻译”; color: #333; } 这里是 noscript 内容,应该被保护,不应该被翻译。
这里是 template 内容,应该被保护,不应该被翻译。

The following is the WordPress short code test. The short code should be protected as a whole:

[contact-form-7 id=”123″ title=”中文联系表单标题”] [zob_button text=”查看产品详情” url=”https://www.topkyj.com/products/11.html”]

The following is an iframe video embedding. iframe should be protected:

The following is a local video test. The video/source/track/poster structure should be protected:

The following is the audio test. audio/source should be protected:

The following is the object/embed/param test, which should be protected:

The following is an SVG test. The internal text and path of svg should be protected:

SVG 中文文字不应被翻译

The following is the MathML test. math should be protected:

功率 = 7.5 kW
Parameter name Parameter value
Exhaust volume 1.2 m³/min
Working pressure 8 bar
Application Industry Machinery manufacturing, food processing, electronics factory
This is an ordinary quoted text and should be translated.

The last paragraph of common text: if the HTML protection rules are normal, only common text will be translated. Code, short code, script, style, video, iframe, SVG, MathML and other content should remain the same.

Share to

share
There are no comments yet. Be the first to comment!
Post a new comment
Comment Body
Comment content will be automatically filtered for XSS security vulnerabilities.
Basic HTML tags are available, including: bold, italic, code, quotes, links, etc.