tunhien
asked on
A question
I have a WYSIWYG editor . I have saved informations that they wrote in editor . When I saw in database , it saved like that
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times New Roman" size=3> với địa chỉ hộp thư và mật khẩu đăng nhập này </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com :office:of fice" /><o:p><FONT face="Times New Roman" size=3> </FONT></o:p> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>When you log in we advise that you change your password to </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>something more memorable to yourself.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>If you encounter any problems with logging in please do not </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>hesitate to contact us.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>Nế u bạn gặp bất kỳ trở ngại nào khi đăng nhập xin đừng do dự hãy liên hệ ngay với chúng tôi .</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Kindest Regards,</FONT></P>
I have get that information and showed in Website . It likes :
You can login to http://www.escentual.co.uk with this email address
and password combination.
Bạn có thể đăng nhập vào trang http://www.escentual.co.uk với địa chỉ hộp thư và mật khẩu đăng nhập này
When you log in we advise that you change your password to
something more memorable to yourself.
Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.
If you encounter any problems with logging in please do not
hesitate to contact us.
Nếu bạn gặp bất kỳ trở ngại nào khi đăng nhập xin đừng do dự hãy liên hệ ngay với chúng tôi .
Kindest Regards,
But I want to show only 1/3 that content , like :
You can login to http://www.escentual.co.uk with this email address
and password combination.
Bạn có thể đăng nhập vào trang http://www.escentual.co.uk với địa chỉ hộp thư và mật khẩu đăng nhập này ...
How can I do ? It is very hard for me to do , because when I reveived contents , I reveived all ( including html code like in database ) , like :
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times New Roman" size=3> với địa chỉ hộp thư và mật khẩu đăng nhập này </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com :office:of fice" /><o:p><FONT face="Times New Roman" size=3> </FONT></o:p> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>When you log in we advise that you change your password to </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>something more memorable to yourself.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>If you encounter any problems with logging in please do not </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>hesitate to contact us.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>Nế u bạn gặp bất kỳ trở ngại nào khi đăng nhập xin đừng do dự hãy liên hệ ngay với chúng tôi .</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Kindest Regards,</FONT></P>
How can I know where to cut that string ? I have did with content.length()/8 , but all I had are :
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times Ne
And it showed in website with error .
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times New Roman" size=3> với địa chỉ hộp thư và mật khẩu đăng nhập này </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>When you log in we advise that you change your password to </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>something more memorable to yourself.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>If you encounter any problems with logging in please do not </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>hesitate to contact us.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>Nế
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Kindest Regards,</FONT></P>
I have get that information and showed in Website . It likes :
You can login to http://www.escentual.co.uk with this email address
and password combination.
Bạn có thể đăng nhập vào trang http://www.escentual.co.uk với địa chỉ hộp thư và mật khẩu đăng nhập này
When you log in we advise that you change your password to
something more memorable to yourself.
Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.
If you encounter any problems with logging in please do not
hesitate to contact us.
Nếu bạn gặp bất kỳ trở ngại nào khi đăng nhập xin đừng do dự hãy liên hệ ngay với chúng tôi .
Kindest Regards,
But I want to show only 1/3 that content , like :
You can login to http://www.escentual.co.uk with this email address
and password combination.
Bạn có thể đăng nhập vào trang http://www.escentual.co.uk với địa chỉ hộp thư và mật khẩu đăng nhập này ...
How can I do ? It is very hard for me to do , because when I reveived contents , I reveived all ( including html code like in database ) , like :
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times New Roman" size=3> với địa chỉ hộp thư và mật khẩu đăng nhập này </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>When you log in we advise that you change your password to </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>something more memorable to yourself.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Sau khi đã đăng nhập chúng tôi khuyên bạn nên thay đổi mật của bạn để bạn dễ dàng nhớ.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>If you encounter any problems with logging in please do not </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>hesitate to contact us.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>Nế
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Kindest Regards,</FONT></P>
How can I know where to cut that string ? I have did with content.length()/8 , but all I had are :
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>You can login to http://www.escentual.co.uk with this email address </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>and password combination.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Bạn có thể đăng nhập vào trang </FONT><A href="http://www.escentual.co.uk/"><FONT face="Times New Roman" size=3>http://www.escentual.co.uk</FONT></A><FONT face="Times Ne
And it showed in website with error .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How do you display it to your website? Are you using any JSTL?
David