 |
ขอความช่วยเหลือแปลงข้อมูลที่เก็บลง mysql จาก ckeditor ออกมาเป็นข้อความปกติ |
|
 |
|
|
 |
 |
|
1. เอา plug-in ckeditor ออก
2. ใช้ฟังก์ชั่นนี้
Code (PHP)
$text = '<p><span style="background-color:rgb(255, 255, 255); color:rgb(77, 81, 86); font-family:arial,sans-serif; font-size:14px">In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.</span></p> <p>https://www.thaicreate.com/community/ckeditor-plugin-upload-image.html</p> <p><a href="https://www.thaicreate.com/community/ckeditor-plugin-upload-image.html">Open..</a></p>';
echo strip_tags($text);
|
ประวัติการแก้ไข 2021-08-07 12:14:57
 |
 |
 |
 |
Date :
2021-08-07 12:12:42 |
By :
arm8957 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
'abstract' => $request->post('abstract')->textarea(),
Code (PHP)
$content .= '<p class=tr><span class="td item icon-dev">{LNG_abstract}</span><span class="td item">:</span><span class="td item">'.$index->abstract.'</span></p>';
ใช้ framework อะไร ถ้าเขียนเองไม่มีใครช่วยได้นะ
|
 |
 |
 |
 |
Date :
2021-08-08 21:15:42 |
By :
TheGreatGod_of_Death |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งั้นผมขอขึ้นกระทู้ใหม่ดีกว่า ให้สั้นๆ กระชับๆ ตรงประเด็น ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2021-08-09 13:56:21 |
By :
npolkhet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
assoc array(PHP)
"key" => "value"
key = 'abstract'
value = $request->post('abstract')->textarea()
ดูแค่นี้ก็รู้ว่าใช้ framework
ถ้าไม่บอกว่าของยี่ห้ออะไร
ก็ไม่สามารถเฟ้นหาข้อมูลมาได้
อย่างน้อยก็ไม่มีใครรู้ว่า เมธอด textarea() ได้ implement ไว้อย่างไร
มีการกำจัด tag ออกแล้วหรือไม่ ckeditor เป็น client-side
ไม่เกี่ยวกับ php ดังนั้น นอกจากบอก framework ที่ใช้แล้ว
ควรแปะ object/class ที่เกี่ยวข้องด้วย จึงจำเป็นต้องขยายความ
ไม่ใช่หกให้สั้นลง...เว้นแต่รู้ประเมินตัวเองได้ว่าติดปัญหาเรื่องอะไร
แล้วสามารถนำคำตอบที่ว่าตรงประเด็นไปประยุกต์ใช้ได้ด้วยตนเอง
|
 |
 |
 |
 |
Date :
2021-08-09 14:08:41 |
By :
TheGreatGod_of_Death |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|