0

我有一个很长的文本,其中也有 html 内容。就像是 -

Dell World Newsletter #7 December 3, 2012<br><br>Dell World is Only One Week Away!<br>The organizers of Dell World are putting the finishing touches on thr ee days of exciting keynotes, sessions and entertainment. Check out the highlights and plan your agenda today.<br>Read more &gt; <a target="_blank" href="http://del.ly/6147p5gd" rel="nofollow" class="has-preview">http://del.ly/6147p5gd</a><br><br>Modernize Your IT<br>Paul Holland, global sales director of Application Modernization at Dell, talks about the importance of application modernization and the perils organizations face by ignoring the trend. Legacy footprints are affecting an organizations ability<span class="text_exposed_hide">...</span><div class="text_exposed_show"> to be agile in addressing new business needs and implementing new technologies. They are costing organizations a disproportionate amount of money: 80 percent of IT budgets are typically spent maintaining and running these legacy environments.<br>Watch the video &gt; <a target="_blank" href="http://del.ly/6148p5ge" rel="nofollow" class="has-preview">http://del.ly/6148p5ge</a><br><br>Develop a Cloud Strategy<br>Cloud computing is a key topic of discussion at Dell World 2012. Mark Clifton, director of Global Cloud Solutions Strate gy for Commercial Business at Dell, discusses the cloud strategies and innovations youll learn about at the conference.<br>Read more &gt; <a target="_blank" href="http://del.ly/6149p5g5" rel="nofollow" class="has-preview">http://del.ly/6149p5g5</a><br><br>Take Control and Simplify Your Data Center<br>I/O virtualization can reduce rack cabling by 80%, lower capital expenses by 40% and lower you operating expenses by 60%. Join NextIO in the Dell World Data Insights Neighborhood Theater at 1pm on Wednesday or in the Cloud Neighborhood Theater at 12:30pm on Thursday to let us show you how. Ask us about our no risk, FREE 30-day try and buy offer<br><br>Learn more &gt; <a target="_blank" href="http://del.ly/6140p5gg" rel="nofollow" class="has-preview">http://del.ly/6140p5gg</a><br><br><br>Meet and Tweet with Brocade, Emulex and MD3 Storage<br>Join fellow Dell customers and partners for a Meet Up and Tweet Up event at Bar96, from Brocade, Emulex and MD3 Storage! Well be talking all things better together: storage and networking, Fib re Channel, end-to-end management and the hottest sessions at Dell World. Bring a colleague and join the conversation!<br>Join us December 12 from 6-11 p.m. at Bar96 on Rainey Street.<br>Register here &gt; <a target="_blank" href="http://del.ly/6141p5g9" rel="nofollow" class="has-preview">http://del.ly/6141p5g9</a><br><br><br>Time is running out to register for our unique gathering of business leaders, CIOs, industry analysts, consultants and other IT professionals who will share ideas and best practices for making organizations more successful. Reserve your spot today to gain valuable insights on how you can use technology as a tool for innovation at your company.<br>Register Here &gt; ( <a target="_blank" href="http://del.ly/6142p5gi" rel="nofollow" class="has-preview">http://del.ly/6142p5gi</a> )<br><br><br>NEWS<br>Tech Page One Launches<br>Join us for the launch of Dells Tech Page One, a portal for news and analysis at the intersection of technology, business and culture. Explore content from the best minds at Dell as w ell as leaders and creators from around the globe. Visit the Tech Page One booth inside the Solutions Showcase. www.techpageone.com<br><br>NEWS<br>Health Check<br>While youre at Dell World, stop by the SoloHealth Station, an interactive, self-service kiosk that screens vision, blood pressure, weight and body mass index in seven minutes or less for free. The kiosk provides an overall health assessment and access to a database of local physicians and actionable health recommendations. The station, available in locations throughout the U.S., was created in partnership with Dells OEM Solutions group. Read more &gt; <a target="_blank" href="http://del.ly/6143p5gc" rel="nofollow" class="has-preview">http://del.ly/6143p5gc</a><br><br>NEWS<br>Dell Giving Showcase<br>Dell's giving approach is simple: Be a powerful force for change and help connect the youth of today with a more promising tomorrow. The Dell Giving Showcase is an interactive area tha t will educate attendees about the four Dell Strategic Giving programsYouth Learning, Childrens Cancer Care, Social Entrepreneurship and Disaster Reliefwhile also involving the public in a sack-pack-stuffing project to be donated to underprivileged children. Follow Dell Giving on Twitter.&gt; <a target="_blank" href="http://del.ly/6144p5gY" rel="nofollow" class="has-preview">http://del.ly/6144p5gY</a><br><br>Register Here &gt; ( <a target="_blank" href="http://del.ly/6145p5gl" rel="nofollow" class="has-preview">http://del.ly/6145p5gl</a> ) #DellWorld<br><br>Cant be in Austin December 11-13? Not to worry, attend the premier event virtually. &gt; <a target="_blank" href="http://del.ly/6146p5gm" rel="nofollow" class="has-preview">http://del.ly/6146p5gm</a></div><span class="text_exposed_hide text_exposed_link sub-text"><a href="javascript: void(0)" data-action="expose" class="has-preview">See More</a></span>

现在,这一行有文本、锚标记、br 标记和许多其他标记。

但这呈现为- *



戴尔世界仅一周之遥!
Dell World 的组织者正在为为期三天的激动人心的主题演讲、会议和娱乐活动做最后的收尾工作。查看亮点并计划您今天的议程。
阅读更多 > http://del.ly/6147p5gd

*


现在我的问题是,我想对这行文本进行自动换行,以使每行不超过 100 个字符。但条件是 html 标签应该放在一起,因为损坏的锚标签将变得无用。那么,我应该如何自动换行,以便 html 标签在自动换行时保持在一起。
请提出建议。

4

2 回答 2

0

使用 CSS

Jquery 的 addClass

用javascript设置类

于 2013-02-14T16:02:15.513 回答
0

找到我的答案。:)

我在找这个 - http://plugins.learningjquery.com/expander/index.html

将文本限制为指定编号的东西。一行(或总共)的字符数,中间不拼接 html 内容:)

于 2013-02-15T09:52:53.423 回答