Find Jobs
Hire Freelancers

428872 PHP function: replace Word-trouble and format

N/A

完了済み
投稿日: 14年近く前

N/A

完了時にお支払い
I've a TinyMCE textarea with the next buttons: theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,undo,redo,|,bullist,|,outdent,indent,|,cut,copy,paste,|,charmap,|,spellchecker" Now I'm searching for a PHP-function that (when a user will save the content in the textarea) strips the font-family, font-size, font-size-adjust, and other trouble after a copy-paste from Word. Only the format behind the menubuttons (bold, ul, li, em, ....) are allowed. As example: This is my input: <p><span style="font-size: small;"><span style="font-family: "Times New Roman","serif";">sdf<span style="color: #ff6600;">sdfdsf</span></span><span style="font-family: "Neuropol","sans-serif"; color: #ff6600; mso-bidi-font-family: 'Times New Roman';">as</span><span style="font-family: "Neuropol","sans-serif"; mso-bidi-font-family: 'Times New Roman';">dasdasd</span></span></p> <p><span style="font-family: "Neuropol","sans-serif"; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span></p> <p><span style="font-family: "Neuropol","sans-serif"; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: small;">sdfsdf<span style="color: #b8cce4; mso-themecolor: accent1; mso-themetint: 102;">sdfsdfsdf</span></span></span></p> <ul> <li> <div><span style="font-family: "Arial","sans-serif"; color: #b8cce4; mso-themecolor: accent1; mso-themetint: 102;"><span style="font-size: small;">sadfsdfsdf</span></span></div> </li> <li> <div><span style="font-family: "Arial","sans-serif"; color: #b8cce4; mso-themecolor: accent1; mso-themetint: 102;"><span style="font-size: small;">sdfsdfsdf</span></span></div> </li> <li> <div><span style="font-family: "Arial","sans-serif"; color: #b8cce4; mso-themecolor: accent1; mso-themetint: 102;"><span style="font-size: small;"></span></span></div> </li> </ul> This must be: <p>sdf<span style="color: #ff6600;">sdfdsfas</span>dasdasd</p> <p> </p> <p>sdfsdf<span style="color: #b8cce4;">sdfsdfsdf</span></p> <ul> <li> <div><span style="color: #b8cce4;">sadfsdfsdf</span></div> </li> <li> <div><span style="color: #b8cce4;">sdfsdfsdf</span></div> </li> <li> <div> </div> </li> </ul> </body> </html>
プロジェクト ID: 2174742

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 12年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Will be done.
$25 USD 0日以内
4.9 (508 レビュー)
7.3
7.3

クライアントについて

NETHERLANDSのフラグ
Netherlands
5.0
19
お支払い方法確認済み
メンバー登録日:1月 30, 2008

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。