Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
As it was previously stated, being provided a brief description to prior art in the introduction, this is best understood from for the ease of follow-up
The scheme difference with the prior art of application, and the application advantage of the scheme compared to prior art, describe in detail this
Before the scheme of application, specific analysis is first compared to prior art with an example.
In the prior art, mainly it is locally generated based on HTML (HyperText by client
Markup Language, HTML) form rich text;In displaying, the html format that generation before parsing is passed through by client
Rich text, to realize the displaying of rich text.
For example it is assumed that the rich text for needing displaying is:
" stock $ Index of Shanghai Stock Exchange (1A0001.SH) $ is bought, fund $ is bought and is extensively sent out debt bond A (270048.OF) $ pure, you feel
HowThe small soft sweets of the@mammonCarry out # exchanging areas # to participate in discussion ".
Wherein, in the rich text, user clicks on " $ Indexs of Shanghai Stock Exchange (1A0001.SH) $ " and can jump to Index of Shanghai Stock Exchange correspondence
The stock page, click on " $ extensively send out pure debt bond A (270048.OF) $ " and can jump to and extensively send out the corresponding fund pages of debt bond A pure
Face, clicking on " the small soft sweets of the@mammon " can jump to the private page of user of entitled " the small soft sweets of the mammon ", click on " # exchanging areas # "
Certain exchanging area page can be jumped to;
" $ Indexs of Shanghai Stock Exchange (1A0001.SH) $ " in rich text, " $ extensively send out pure debt bond A (270048.OF) $ ", " the@mammon
Small soft sweets ", " # exchanging areas # " in addition to it can be associated with redirected link, can also have some Special Effect Shows (such as
Highlighted, colouring, overstriking, italic etc.).
In the prior art, if delivering the rich text by the first client, and in the first client or the second client
End displaying (being checked in order to user) rich text is, it is necessary to experience procedure below:
First, the generation of rich text:
First, the first client extracts key message in the text of user input, and each crucial letter is obtained from service end
Cease corresponding data.You is given in upper example photo, key message is respectively " Index of Shanghai Stock Exchange (1A0001.SH) ", " extensively sends out debt bond pure
A (270048.OF) ", " the small soft sweets of the mammon ", " certain exchanging area ", the corresponding data of these key messages are specially:These key letters
Cease corresponding page address.
It is assumed that the corresponding page address of key message that the first client is obtained from service end is as follows respectively:
The corresponding page address of Index of Shanghai Stock Exchange:
“afwealth://platformapi/startappAppid=stock&action=stockdetail&
StockId=$ stockId&stockType=$ stockType&market=$ marketType&symbol=$
StockSymbol&name=$ stockName ";
Extensively send out the corresponding page addresses of debt bond A pure:
“afwealth://platformapi/startappAppid=fund&action=fund_detail&
Fundcode=<FUNDCODE>&productid=<PID>&fundname=<FUNDNAME>&fundtype=<
FUNDTYPE>”;
The corresponding page address of the small soft sweets of the mammon is:
“afwealth://platformapi/startappAppid=user&action=profile&userId=
$ userId&from=$ from ";
The corresponding page address in certain exchanging area is:
“afwealth://platformapi/startappAppid=forum&topicid=$ topicid&
Topictype=$ topictype&productname=$ productname&productcode=$ productcode ";
In addition, there is " tittering " emoticon in rich text, it may be determined that the picture address of the emoticon is:
If Android platform:“file:///android_asset/emticon/ww004@2x.png”;
If iOS platforms:/AFWealth.app/Emotion/ww/ww04@2x.png.
Secondly, by taking Android platform as an example, the first client is according to the text of user input, and each key for obtaining
The corresponding data of information, generate corresponding HTML content (that is, rich text of html format) as follows:
“<![CDATA[<P>Buy stock<A href=" afwealth://platformapi/startappAppid=
Stock&action=stockdetail&stockId=$ stockId&stockType=$ stockType&market=$
MarketType&symbol=$ stockSymbol&name=$ stockName ">$ Indexs of Shanghai Stock Exchange (1A0001.SH) $</a>,
Buy fund<A href=" afwealth://platformapi/startappAppid=fund&action=fund_
Detail&fundcode=<FUNDCODE>&productid=<PID>&fundname=<FUNDNAME>&fundtype=<
FUNDTYPE>”>$ extensively sends out debt bond A (270048.OF) $ pure</a>, you feel how<A href=" afwealth://
platformapi/startappAppid=user&action=profile&userId=$ userId&fro m=$
from”>The small soft sweets of the@God of Wealth</a><Img src=file:///android_asset/emticon/ww004@2x.png
><Img src=file:///android_asset/emticon/ww004@2x.png></p>, come<A href=
“afwealth://platformapi/startappAppid=forum&topicid=$ topicid&topictype=$
Topi ctype&productname=$ productname&productcode=$ productcode "># exchanging areas #</a
>Participate in discussion]] ".
2nd, the displaying of rich text:
After first client is locally generated the rich text of above-mentioned html format, service end preservation is sent it to.If
First client will show the rich text, can travel through rich text to generate DOM Document Object Model (Document Object
Model, DOM) tree, and then each node in dom tree is traveled through to render displaying rich text, and reset link event.Similarly,
If the second client will show the rich text, the rich text can be obtained from service end and shown again.
According to upper example, there are the following problems can to analyze prior art:
1st, it is described in background technology, the first client needs repeatedly to be interacted with service end with service end, to obtain
The corresponding information of each key message in the text of user input is taken, and the rich text of generation is sent to service end, either
In terms of the treatment or in terms of flow, resource consumption is all larger.
2nd, the rich text of the html format of generation need to consider the compatibility issue of different platform, different editions.
3rd, safety issue:Malicious attacker can intercept the Fu Wen that user issues html format by cutting the means such as bag
This, it is possible to is by the link for linking and being changed to malicious web pages therein, so that potential threat can be caused to other users;Not only such as
This, also increases Content Advisor difficulty of the service end for rich text, because the rich text of user's issue is with html format highly
Coupling, service end need to first travel through rich text and form dom tree, could once check the conjunction of the corresponding content of each node of dom tree
Method.
4th, flexibility problem:The demand of some application scenarios cannot be met, such as, for rich text in same key
Information, it may be desirable to which different users is directed to the different pages by clicking on the key message, but due to key letter
The corresponding link of breath is that client is set, accordingly, it is difficult to meet demand.
Labor is carried out to prior art and its problem above by example, the scheme of the application not only can part
Or fully solve the problems of the prior art stated in the background, it is also possible to partly or entirely solve above-mentioned existing
Other problemses in technology.The scheme to the application is illustrated below.
In the embodiment of the present application, the first client can refer to the client of issue rich text, and the second client can refer to
Client beyond first client, service end is that the first client and the first client provide service.The scheme of the application can
To be related at least one end in this three end of service end, the first client and the second client, separately below from this three end to this Shen
Scheme please is illustrated.
A kind of schematic flow sheet of rich text methods of exhibiting that Fig. 1 is provided for the embodiment of the present application.
The executive agent of the flow in Fig. 1 can be service end, and the service end can be specifically that can provide rich text issue
Service end of the application of function etc..The equipment that service end can be carried is included but is not limited to:Personal computer, big-and-middle-sized computer,
Computer cluster etc.;The equipment that the first client or the second client can be carried is included but is not limited to:Mobile phone, panel computer, intelligence
Energy wrist-watch, vehicle-mounted mobile platform, personal computer etc..
Flow in Fig. 1 may comprise steps of:
S101:Service end receives the text that the first client sends.
In the embodiment of the present application, the text, compared to the rich text mentioned in the application, can not carry form
Text, or the text of little form is only carried compared to rich text, the text can be visually referred to as " poor " text.
The form can refer to realize link of the information of the Special Effect Show of text, textual association etc..
The text can be that user is input into the first client, and the input process can not rely on the first client
End and interacting that service end is carried out, such as, in the input process, the first client is without in the prior art from service
End obtains corresponding data of key message in text, etc..It is thus possible to reduce the resource consumption of the first client.
S102:The service end generates rich text template according to the text, and obtains corresponding filling data, wherein,
The rich text template and the filling data are used to generate the corresponding rich text of the text.
In the embodiment of the present application, the rich text template and the filling data can be used for generating the text corresponding
Rich text.Service end obtain rich text template and filling data after, substantially have been completed generation rich text needed for it is big
Part works.
Further, in actual applications, in the embodiment of the present application, client may need to show institute more than once
The corresponding rich text of text is stated, and this demand is probably irregular, therefore, for the ease of meeting this demand at any time,
Service end is preferably easy to navigate to rich text template and filling data in time.For rich text template, due to be it is newly-generated,
Therefore easily can unify to preserve in specified storage region, and for filling data, it is likely that already have stored in certain
In individual related database, it is not easy to change storage location again, it is the filling corresponding Data Identification of data genaration that therefore, it can,
Data Identification can be used for navigating to corresponding filling data, compared to filling data, not only data volume very little, and also allow for
Unify to preserve in specified storage region.
Wherein, the Data Identification can be database index, or other can be used for position filling data mark
Knowledge information.
Further, service end can preserve the Data Identification and the rich text template, for follow-up service
End or client generation rich text.
The application specifically preserves region to the Data Identification and the rich text template and preserves medium and do not limit,
Can be stored directly in service end, it is also possible to which preservation is can be with the other equipment at Connection Service end, and preserving medium can be with
It is caching or internal memory or disk etc..
S103:The service end by the rich text template and the filling data be sent to first client and/
Or second client, in order to first client and/or second client according to the rich text template and described
Filling data, generate and show the corresponding rich text of the text.
After service end obtains rich text template and filling data, " according further to rich text template and filling data
Generation rich text " can be realized by service end instead of client (the first client or the second client), it is also possible to still by client
Realize (that is, the way in step S103) in end, it is also possible to cooperated jointly realization by service end and client.No matter which kind of feelings
Condition, the work that service end can be for needed for client have shared more generation rich texts, to cause compared to using existing
Technology, using the application scheme when, client can more easily control generate rich text, it is possible to reduce the resource of client disappears
Consumption.
Explanation is needed, the application is not limited the trigger condition of step S103, can be in execution of step S102
Directly trigger afterwards, it is also possible to after execution of step S102, the first client and/or the second client received by service end
The respective request of transmission is triggered, it is also possible to by service end according to time or the first client and/or second client state from
Trigger dynamicly, etc..
By the above method, the first client need not be interacted repeatedly with service end, to obtain user input respectively
The corresponding information of each key message in text, and can be the text sent according to the first client by service end, it is ready to
For generating the corresponding rich text template of the text and filling data and returning to the first client and/or the second client, then
The data that first client and/or the second client can return according to service end, generate and show the rich text, compared to
The resource consumption of prior art client is less, in therefore, it can partly or entirely to solve the prior art that background technology is mentioned
In problem.
Moreover, because rich text can be according to rich text template and filling data genaration, rich text template and filling
Data can not be limited by html format (because themselves can not be rich text, simply generates what rich text was used
" material "), it is also possible to do not limited by platform or version, then service end or client can be according to oneself corresponding platform, versions
This, is with corresponding specific embodiment (operation such as the filling of rich text template, formatting), generation and to show rich text, therefore,
The scheme of the application can partly or entirely solve platform of the prior art or edition compatibility sex chromosome mosaicism.
Further, according to analysis above, rich text template and filling data can not be coupled with html format, then taken
Business end can be by directly examining that rich text is changed into examination rich text template and filling data (or Data Identification), nothing originally
HTML need to be parsed, examination difficulty is reduced;And can also increase malicious attacker distort difficulty because, if malicious attack
Person to distort rich text, it is necessary to being directed to each will show the client of rich text, and its Fu Wen obtained from service end is distorted respectively
This template or filling data, rather than as in the prior art, malicious attacker only need to be when the first client issues rich text
Distort once, therefore, the scheme of the application can partly or entirely solve safety issue of the prior art.
Based on the method in Fig. 1, the embodiment of the present application additionally provides some specific embodiments of the method, and extension
Scheme, is illustrated below.
In the embodiment of the present application, for step S102, the service end generates rich text template according to the text,
And corresponding filling data are obtained, can specifically include:The service end is entered according to predetermined key message form to the text
Row parsing, extracts one or more key messages included in the text;The service end is according to the text and described
Key message, generates rich text template, and obtains corresponding filling data, wherein, in the rich text template can filling part
Divide mutually corresponding with the key message.
The example for continuing to use prior art is illustrated, and the symbol such as " $ ", " # ", "@" occurred in example is a kind of crucial
Information format, the part being located between two " " in text may belong to key message, and the part between two " # " can
To belong to key message, the user name after "@" may belong to key message, etc..Certainly, " $ ", " # ", "@" are
The example of key message form, not to the restriction of the application, in actual applications, can be carried out to key message form in advance
Definition.
Partly mutually corresponding with the key message being meant that can be filled:Part can be filled to be needed according to its corresponding pass
Key information is filled.It is specific how to be filled the filling data that then depend on obtaining.Such as, can be with after formatting
Key message fill its it is corresponding fill part, and the foundation how to be formatted can then depend on the filling for obtaining
Data.
In the embodiment of the present application, in step s 102, the service end can not also extract key message, but by text
This is analyzed as an entirety, such as, semantic analysis etc. is carried out to text.Then, according to relevant with the semanteme for analyzing
Some data genaration rich text templates, and obtain corresponding filling data.
In the embodiment of the present application, for the above-mentioned corresponding filling data of acquisition, can specifically include:The service end
According to the key message, Data Identification is generated;According to the Data Identification, the acquisition text is corresponding to be filled out the service end
Make up the number evidence.(when still without corresponding Data Identification) can be first when service end is initial it should be noted that in actual applications
Filling data are obtained, regeneration Data Identification, and want that what is emphasized is not the process of generation Data Identification in this section, but
Emphasize generate Data Identification after whenever, it is necessary to reentry it is corresponding filling data when, can be according to Data Identification
Positioning is gone to obtain.
In the embodiment of the present application, for above-mentioned generation Data Identification, can specifically include:The service end is according to institute
Key message is stated, the corresponding data of the key message are searched in corresponding database;The service end is according to the key
Information and the corresponding data of the key message, generate Data Identification.This section is " when initial " service end to the preceding paragraph
Action explanation.
The corresponding data of the key message can be the corresponding content of pages of such as key message, page address, be used for
The data such as the format information of formatting, or can be used for positioning the identification information of these data etc..
Above from service end angle, to being illustrated for the scheme of the application, based on same thinking, separately below from
The angle of the first client, the second client, the scheme to the application proceeds explanation.
The schematic flow sheet of another rich text methods of exhibiting that Fig. 2 is provided for the embodiment of the present application.Flow in Fig. 2
Executive agent can be the first client.
Flow in Fig. 2 may comprise steps of:
S201:First client sends text to service end.
S202:First client receives the service end according to the text, it is determined that and the rich text template that sends
With filling data.
S203:First client generates and shows the text according to the rich text template and the filling data
This corresponding rich text.
The technique effect of the method in Fig. 2 has been elaborated when being illustrated to Fig. 1, be will not be described here.
Based on the method in Fig. 2, the embodiment of the present application additionally provides some specific embodiments of the method, and extension
Scheme, is illustrated below.
In the embodiment of the present application, for step S203, first client is according to the rich text template and described
Filling data, generate and show the corresponding rich text of the text, can specifically include:First client is filled out according to
Make up the number evidence, filled with the part in the rich text template is filled and formatted, it is corresponding to generate the text
Rich text;First client shows the rich text.
It should be noted that in actual applications, the first client can also not only can filling out to rich text template
Fill part to be filled and format, possibly even rich text template pattern in itself and content are modified, and then
Rich text template generation based on modification simultaneously shows rich text.In this case, the rich text template can be one compared with
It is rough template, by modification, the rich text template can be embodied as different rich text subtemplates, such that it is able to
Meet the different demands of different clients or different application scene.
The formatting is included but is not limited to:Be in rich text template fill part increase Special Effect Show or
Link etc. is set.
In the embodiment of the present application, one or more key messages, correspondingly, rich text mould can be included in the text
Can also can fill part comprising one or more in plate, each key message with can respectively fill part can be mutually corresponding.
In the embodiment of the present application, according to it can be seen from explanation of the service end angle to the scheme of the application, the filler
According to can be that the service end is obtained according to corresponding Data Identification;The Data Identification can be the service end according to institute
State key message data genaration corresponding with the key message of the lookup in corresponding database.It is described filling data be
It is all or part of of the corresponding data of the key message.
In addition to the first client for issuing rich text shows the rich text, the second client has been likely to show the richness
The demand of text, such as, when user sees the rich text of user's issue of the first client on a second client, the second client
Need to show the rich text.
Then similar with the first client, the second client can be locally generated and show the rich text, and difference exists
In, because the rich text is not the issue of the second client, therefore, the second client to service end without sending the first client
Hold the text for sending.
According to analysis above, the embodiment of the present application additionally provides another rich text methods of exhibiting, is from the second client
The angle description at end.
Fig. 3 provides the schematic flow sheet of another rich text methods of exhibiting for the embodiment of the present application.Flow in Fig. 3
Executive agent can be the second client.
Flow in Fig. 3 may comprise steps of:
S301:Second client receives the rich text template and filling data that the service end sends, the rich text
This template and the filling data are that the text that the service end sends according to the first client determines.
302:Second client generates and shows the text according to the rich text template and the filling data
Corresponding rich text.
The technique effect of the method in Fig. 3 has been elaborated when being illustrated to Fig. 1, be will not be described here.In Fig. 3
The specific embodiment and expansion scheme of method are similar with the specific embodiment of the method in Fig. 2, will not be described here.
By the explanation from client to the scheme of the application, client has filling data and rich text
After template these " materials ", these " materials " can be based on, generate and show richness by performing the operation such as filling and formatting
Text.For the different clients for belonging to different platform or different editions, each client can be using suitable for own situation
Specific embodiment, performs the operation such as filling and formatting, consequently, it is possible to generate and show incomplete same rich text,
In this way, above-mentioned flexibility problem of the prior art can be solved partly or entirely.
For example, the same key message in for rich text, it may be desirable to which different users is believed by clicking on the key
Breath is directed to the different pages.Then client can be according to the difference of user profile, when formatting, for the key message is closed
The different link (the different link may belong to the corresponding index information of the key message) of connection, it is poor such that it is able to realize
The guiding of alienation is redirected.
The scheme to the application has been described in detail above.The scheme of the application is understood to further aid, this
Application embodiment is additionally provided under a kind of practical application scene, the scheme based on the application, issues and show the detailed of rich text
Thin process, the process is to have continued to use illustrating for above-mentioned example in the prior art.It is assumed that expecting the Fu Wen of issue and displaying
This is the rich text of example in the prior art.
First client can send following text to service end, and form can not be included in the text:
" stock $ Index of Shanghai Stock Exchange (1A0001.SH) $ is bought, fund $ is bought and is extensively sent out debt bond A (270048.OF) $ pure, you feel
HowThe small soft sweets of the@mammon [tittering] [tittering], carrys out # exchanging areas # and participates in discussion "
Service end can be parsed according to predetermined key message form (symbol such as " $ ", "@") to the text, be extracted
Key message:" $ Indexs of Shanghai Stock Exchange (1A0001.SH) $ ", " $ extensively send out pure debt bond A (270048.OF) $ ", " the small soft sweets of the@mammon ",
" [tittering] [tittering] ", " # exchanging areas # ".Wherein, the emoticon that " titters " can be processed by service end, it is also possible to by client
To process, herein it is assumed that being processed by client, then service end is without the corresponding Data Identification of generation " tittering " emoticon.
Service end can respectively search the corresponding data of each key message in corresponding database, and then can be according to lookup
The data for arriving and each key message, generate Data Identification.Service end can also be rich according to each key message and text generation
Text template, because Data Identification and filled with the part in rich text template can be mutually corresponding, therefore, for the ease of
Follow-up filling and form are changed, and Data Identification can be included in rich text template, such as, Data Identification can be placed in rich text mould
It is corresponding in plate can filling part office.
It is assumed that Data Identification is certain identification information in the corresponding data of key message.Under a kind of implementation method, root
According to the text, the rich text template and Data Identification of generation can be as follows:
Rich text template:
" buy stock { { S_0 } }, buy fund { { F_0 } }, you feel how{ { U_0 } } [tittering] [tittering], carrys out { { T_
0 } } participate in discussion ".
Data Identification:
S_0:Corresponding stock index mark (Id) of Index of Shanghai Stock Exchange (1A0001.SH);
F_0:The corresponding fund index Id that extensively sends out debt bond A (270048.OF) pure;
U_0:The corresponding user index Id of the small soft sweets of the mammon;
T_0:The corresponding zone of discussion index Id in certain exchanging area.
It should be noted that be above a kind of example of rich text template and Data Identification, not to the restriction of the application.
The rich text template and Data Identification of service end storage generation.
When the first client or the second client need the displaying corresponding rich text of the text, related processing procedure is such as
Under:
Rich text template and Data Identification that service end is stored before extracting, and filling data are obtained according to Data Identification.
It is assumed that the filling data for obtaining are as follows:
Rich text template and filling data are sent to client by service end, and client receives rich text template and filler
According to rear, the corresponding rich text of displaying can be rendered.Specifically, client owns " { { } } " in can successively facilitating rich text template
The label (as in rich text template each fill part) of expression, the Data Identification in label is looked into data are filled
Look for corresponding data, and filled with the data for finding and format rich text template, such that it is able to generate and show rich text
This.
With reference to upper example, how flexibility problem of the prior art is solved to the scheme of the application and is remarked additionally.
When redirected link when needing to certain click key message is modified, prior art cost of implementation is higher (to be needed
Rich text is traveled through, corresponding key message is found, then according to the corresponding form modifying HTML code of key message, process ratio
It is cumbersome, and it is also easy to error).And it is based on the scheme of the application, it is only necessary to change the number pointed by corresponding Data Identification
According to.
For example, the data that S_0 can be pointed to
It is revised as:
When " $ Shanghai and Shenzhens 300 (1B0001.SH) $ " in the rich text for generating is clicked on as user, Shanghai and Shenzhen can be jumped to
The 300 corresponding stock pages, without jumping to the corresponding stock page of Index of Shanghai Stock Exchange.
Can be seen that the work that service end mainly completes according to upper example is generation rich text template and Data Identification, in reality
In the application of border, the work of this part can be realized based on template engine, wherein, residing for template engine data corresponding with key message
Database between can be provided with interface, obtain the corresponding data of key message in order to template engine, as shown in Figure 4.
Under a kind of practical application scene that Fig. 4 is provided for the embodiment of the present application, the rich text template generation process of service end
Schematic diagram.
In fig. 4, text resolution system, Data Identification system and template generation system can be at least included in template engine
System, wherein, text resolution system can be used for each key message included in the text for parse client transmission, Data Identification
System can be used for obtaining the corresponding data of key message from Relational database, and template generating system can be used for generating rich text
This template and Data Identification.
It can be seen that, due to the key message in Fig. 4 Chinese versions be stock name, fund name, user name, exchanging area name, can
To obtain the corresponding number of key message from stock information, fund information, user profile, the database of exchanging area information is preserved
According to.
After template engine generates rich text template and Data Identification, service end can be carried out persistence treatment, such as,
It is stored in disk medium.
Further, the embodiment of the present application is additionally provided under a kind of practical application scene, the issue of rich text and is shown
It is intended to, as shown in Figure 5.The action at each end during the issue and displaying of rich text is easier to understand by Fig. 5.
In Figure 5, the first client is carried on the mobile phone above left side, the second client is carried on the mobile phone below left side
End, centre is service end, and right side is related database.Each action in Fig. 5 has been described in detail respectively above,
Will not be described here.
It is above the rich text methods of exhibiting that the embodiment of the present application is provided, based on same thinking, the embodiment of the present application is also
Corresponding rich text exhibiting device is provided, as shown in Fig. 6, Fig. 7, Fig. 8.
The structural representation of the text processing apparatus corresponding to Fig. 1 that Fig. 6 is provided for the embodiment of the present application, the device is located at
Service end, including:
First receiver module 601, receives the text that the first client sends;
Generation module 602, according to the text, generates rich text template, and obtain corresponding filling data;
First sending module 603, by the rich text template and the filling data be sent to first client and/
Or second client, in order to first client and/or second client according to the rich text template and described
Filling data, generate and show the corresponding rich text of the text.
Alternatively, generation module 602, according to predetermined key message form, parse to the text, extract described
One or more key messages included in text, according to the text and the key message, generate rich text template, and obtain
Corresponding filling data are obtained, wherein, filled with the part in the rich text template is mutually corresponding with the key message, described
Rich text template and the filling data are used to generate the corresponding rich text of the text;
Alternatively, generation module 602, according to the key message, generate Data Identification, according to the Data Identification, obtain
Obtain the corresponding filling data of the text.
Alternatively, generation module 602, according to the key message, search the key message in corresponding database
Corresponding data, according to the key message and the corresponding data of the key message, generate Data Identification.
The structural representation of the textual presentation device corresponding to Fig. 2 that Fig. 7 is provided for the embodiment of the present application, the device is located at
First client, including:
Second sending module 701, text is sent to service end;
Second receiver module 702, receives the service end according to the text, it is determined that and the rich text template that sends and filling out
Make up the number evidence;
First display module 703, according to the rich text template and the filling data, generates and shows the text pair
The rich text answered.
Alternatively, the first display module 703, according to the filling data, to the rich text template in can filling part
Divide and be filled and format, to generate the corresponding rich text of the text, show the rich text.
Alternatively, one or more key messages are included in the text;Filled with part in the rich text template
It is mutually corresponding with the key message.
Alternatively, the filling data are that the service end is obtained according to corresponding Data Identification;
Described in the Data Identification service end is searched according to the key message and in corresponding database
The corresponding data genaration of key message.
The structural representation of the textual presentation device corresponding to Fig. 3 that Fig. 8 is provided for the embodiment of the present application, the device is located at
Second client, including:
3rd receiver module 801, receives rich text template and filling data that the service end sends, the rich text mould
Plate and the filling data are that the text that the service end sends according to the first client determines;
Second display module 802, according to the rich text template and the filling data, generates and shows the text pair
The rich text answered.
The method that the device that the application is provided is with the application is provided is one-to-one, therefore, described device also have with
The similar Advantageous Effects of methods described, because the Advantageous Effects above to methods described have been carried out specifically
It is bright, therefore, the Advantageous Effects of described device are repeated no more here.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., within the scope of should be included in claims hereof.