I'm working on Layer 2 so gas/efficiency aren't primary concerns, assuming the function can be executed by the EVM
Saving long strings could be very expensive operation in smart contracts. I see 2 solutions and they both require offchain actions:
- Save each article in IPFS and then save the returned hash into blockchain.
- Save each article in database and then save the record ID into blockchain.