How php implements unified text rendering for the expansion Platform

Source: Internet
Author: User
This is the requirement. To implement the unified formatting and style of the two platforms, we need to clear the previous code with html, because the other platform cannot parse html, you can only reset the protocol for another platform. Is there a uniform way to solve this problem? I thought about defining a uniform... this is the requirement. To implement the unified formatting and style of the two platforms, we need to clear the previous code with html, because the other platform cannot parse html, you can only reset the protocol for another platform. Is there a uniform way to solve this problem? I thought about defining a uniform template engine to parse it, but there seems to be no common solution for complicated html.

Example code:
Webpage :[♂] $ Name
Other platforms: $ NameThe code above may be like this.

Whether or not they can be implemented in a unified manner ..

Because we use a set of databases, we now have two solutions to redefine the template engine, but it does not seem generic .. Or add a field to the database with the same $ name, and store two copies. The files are read from different platforms ..

Are there any better solutions.

Reply content:

This is the requirement. To implement the unified formatting and style of the two platforms, we need to clear the previous code with html, because the other platform cannot parse html, you can only reset the protocol for another platform. Is there a uniform way to solve this problem? I thought about defining a uniform template engine to parse it, but there seems to be no common solution for complicated html.

Example code:
Webpage :[♂] $ Name
Other platforms: $ NameThe code above may be like this.

Whether or not they can be implemented in a unified manner ..

Because we use a set of databases, we now have two solutions to redefine the template engine, but it does not seem generic .. Or add a field to the database with the same $ name, and store two copies. The files are read from different platforms ..

Are there any better solutions.

Develop a function module for parsing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.